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

Pubblicato il: 31 dicembre 2022
sul canale di: 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


In questa pagina del sito puoi guardare il video online Part 5 | Python Programming | creating an input and printing the answer della durata di ore minuti seconda in buona qualità , che l'utente ha caricato oOSylarTechOo 31 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5 volte e gli è piaciuto 1 spettatori. Buona visione!