“Python, wie man Eingaben druckt” Code-Antworten

Python Print Benutzereingabe

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, wie man Eingaben druckt

#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

Druckeingabe in Python drucken

# 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

Ähnliche Antworten wie “Python, wie man Eingaben druckt”

Fragen ähnlich wie “Python, wie man Eingaben druckt”

Weitere verwandte Antworten zu “Python, wie man Eingaben druckt” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen