Python

From bibbleWiki
Revision as of 03:56, 15 July 2020 by Iwiseman (talk | contribs)
Jump to navigation Jump to search

Intro

Python 2 and 3 differences

print "fred" // OK Python 2
print("fred") // Not OK Python 2

Whitespace

Uses four spaces instead of brackets e.g.

for i in range(5):
    x = i * 10
    print(x)