Python

  1. Define and initialize variable

     myVariable = 5
  2. Print formated text

     print("my name is %s" %John)
  3. Conditions and loops

     if 1 < 2 or 2 < 3:
         //do something
     elif 1 < 2 and 2 < 3:
         //do something
     else:
         //do something
    
     for x in range(0, 5):
         print('test')
    
     list = [1, 2]
     for x in list
         print(x)
    
     while True:
         print("test")
  4. No reference value for variable

     None
  5. Types casting

     int('10')
     str(10)
     float('10.5')
  6. List

     myList = ["1", "2", "3"]