50+ Basic Python Code Examples
List, strings, score calculation and more..
Published in
13 min readMar 17, 2021
1. How to print “Hello World” on Python?
print("Hello World")
2. How to print “Hello + Username” with the user’s name on Python?
usertext = input("What is your name? ")
print("Hello", usertext)