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

Publié le: 31 décembre 2022
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne Part 5 | Python Programming | creating an input and printing the answer durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur oOSylarTechOo 31 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 5 fois et il a aimé 1 téléspectateurs. Bon visionnage!