4 import os os.system('"sudo make_sandwich"') a = 2 print(a*83) print "helllo" i = 4 print i # int i = 4; i = 4 f = 15.5 s = 'Hello' print f print s s.capitalize() # List names = new ArrayList(); names = [] names dict = {} # Map dict = new Hashmap(); dict = {"person1":{"name": "Anas"}} print dict dict = {'a':4, 'b':7} dict['a'] names = ['Edward', 'Kim', 'mysterious man'] names[1] names[1:2] names[-1:] names sorted(l) sorted(names) reversed(names) names.pop(0) def myFunction(string): print string myFunction("Natasha") # if (this is true) { #} else { #} if (1 == 2): print "True" elif(2==3): print "False" else: print "You idiot" if (1==1): print "True" elif (2==3): print "False" else: print "Nothing makes sense anymore" print "true" if 1 == 1 print "True" if (1==1) #for(int i = 0; i< 10; ++i) for i in range(0,10): print i class Person(object): def __init__(self, name, age): self.name = name self.age = age def grow(self, years): self.age += years me = Person("Charles", 49) me = new Person me.age me.grow(10) me.age # import java.util.Date date? import date import os import time a = "This is" b = " the best python tutorial ever" a + b a = '' for i in range(0,10): a += 'a' print a