Part 5 | Python Programming | creating an input and printing the answer

Опубликовано: 26 Январь 2025
на канале: oOSylarTechOo
2
1

This is part 5 of a series of python coding that I am having fun with and want to show others that are interested or stuck.

Code Example:

#creating an input statement

#Make sure to the put the input into a variable
ans = input("How old are you? ")

You can add wording to either side of your answer that you are
printing but you must use the + symbol outside of the strings.

print("You are " + ans + " years old!")

#python #pythonprogramming #pythontutorial #pythonforbeginners #shorts

Music: Pad Subscription with Wondershare Filmora