python in python code example
Example 1: * in python
>>> fruits = ['lemon', 'pear', 'watermelon', 'tomato']
>>> print(fruits[0], fruits[1], fruits[2], fruits[3])
lemon pear watermelon tomato
>>> print(*fruits)
lemon pear watermelon tomato
Example 2: python tutorial
print("Hello World");
variable = input("What is your favorite corn flavour");
print(variable)
for i in range(4):
print("This will happen 4 times");
while(True):
print("This will run forever and will crash terminal");