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

Published: 31 December 2022
on channel: oOSylarTechOo
5
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


On this page of the site you can watch the video online Part 5 | Python Programming | creating an input and printing the answer with a duration of hours minute second in good quality, which was uploaded by the user oOSylarTechOo 31 December 2022, share the link with friends and acquaintances, this video has already been watched 5 times on youtube and it was liked by 1 viewers. Enjoy your viewing!