“python comment imprimer l'entrée” Réponses codées

Python Imprimer l'entrée utilisateur

name = input("Hi! What’s your name ? ")
print("Nice to meet you " + name + "!")

age = input("How old are you ? ")

print("So, you are already " + str(age) + " years old, " + name + " !")
VasteMonde

python comment imprimer l'entrée

#To print user input, take the input from the user and store it as a variable. For example I named the variable "name" because that is the question the user will answer.
name = input("What is your name?")
#Then enter in a print command to actually print the user input. Change the "name" variable to the variable you named it.
print("Nice to meet you," + name)
#Feel free to copy and paste the code and edit it to your liking. Hope this helped!
mauro medina

Imprimer l'entrée dans Python

# Take input from user and store it as a variable. E.g. I store the input as 'user_inp'
user_inp = input("Enter anything you want: ")

#Now you can print it by using print function
print("You entered ", user_inp)
# If you don't want "You entered " you can simply write as:- print(user_inp)
ig - thecoder.ashish

Réponses similaires à “python comment imprimer l'entrée”

Questions similaires à “python comment imprimer l'entrée”

Plus de réponses similaires à “python comment imprimer l'entrée” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code