Posts

Showing posts from June, 2017

Python FizzBuzz Solution

# fizz multiples of 3 # buzz multiples of 5 # fizzbuzz multiples of both i = 1 for i in range(1,51): if i % 3 == 0 and i % 5 == 0: print("fizzbuzz") elif i % 3 == 0: print("fizz") elif i % 5 == 0: print("buzz") else: print(i) i += 1 Why FizzBuzz
PIP & VirtualENV for Python

Install Python

py2 or py3? Installer for Windows setx path "%path%;C:\Program Files (x86)\Git\bin\" Because of the use of %PATH% variable, this command will merge the system environment variables with user ones.

Python Syntax

Python Logic Python Syntax Reference # comments Python Learning Links