Python Basic Programming - Tecnew

Home Ads

Python Basic Programming

Python Basic Programming

Share This

Python Hello World Program


# Python code for "Hello World"

# nothing else to type...see how simple is the syntax.

print("Hello World")



Output
Hello World


Variables and Data Structures
# Python program to declare variables
myNumber = 3
print(myNumber)

myNumber2 = 4.5
print(myNumber2)

myNumber ="helloworld"
print(myNumber)

Output
3
4.5
helloworld




No comments:

Post a Comment