1#Simple console program
2print('Hello')
3x = input('Enter a value: ')
4print(value)
1print("Hello World");
2
3variable = input("What is your favorite corn flavour");
4
5print(variable)
6
7for i in range(4):
8 print("This will happen 4 times");
9
10while(True):
11 print("This will run forever and will crash terminal");
12
13
1This is a very good free python tutorial:
2https://www.youtube.com/watch?v=_uQrJ0TkZlc
1# printing hello world in python
2print("Hello World")
3# adding 2 numbers
4num1 = 10
5num2 = 20
6print(num1 + num2)