Jython tutorial code example

Example 1: python tutorial

print ("Hello, Python!");

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");

Example 3: python tutorial

This is a very good free python tutorial:
https://www.youtube.com/watch?v=_uQrJ0TkZlc

Example 4: python tutorial

# printing hello world in python
print("Hello World")
# adding 2 numbers
num1 = 10
num2 = 20
print(num1 + num2)

Example 5: Python Tutorial

print("Hello, World!")

Example 6: python tutorial

Python is really a great language, isn't it?