In Python, two of the most important beginner tools are print() and input().
1) print() — Print information to the screen
print("Hello, Python!")
2) input() — Get input from the user
Example A:
name = input("Please enter your name: ")
print("Hello, " + name + "!")
name = input("Your name: ")
hobby = input("Your hobby: ")
print("Hello I am " + name + ", I like " + hobby)
Please enter your name: Lily
Hello, Lily!
Your name: LilyYour hobby: reading
Hello I am Lily, I like reading