“Drukuj wejście w Python” Kod odpowiedzi

Python Drukuj wejście użytkownika

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

Drukuj wejście w 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

Odpowiedzi podobne do “Drukuj wejście w Python”

Pytania podobne do “Drukuj wejście w Python”

Więcej pokrewnych odpowiedzi na “Drukuj wejście w Python” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu