“función de entrada python” Código de respuesta

entrada de pitón

#Collecting The Input As A Variable:#
name = input('Please enter your name: ')
#Printing The Variable:#
print(name)
#Checking The Variable And Printing Accordingly:#
if name == 'Joe':
  print('Joe Mama')
Ruukasu

Python Cómo usar la entrada

#basic user handling for begginers

x = input("your question here") # when someone types something here that answer will be saved and be used for later

# for example 
print(x)
rubel1130

Función de entrada de Python

answer = input('What is your name?')
Dr. Hippo

entrada Python

# we make the input to take the name of user
name = input("inter your name : ")
# this input to take the age
age = input("inter your age : ")

# the print to say to user hi and this is your age
print(f"hi {name} your age is {age}")
Condemned Crocodile

Entrada en Python

x = input()
# This will take you to shell where you input a value for x

print(x)
# Print's the value you typed

y = input('Enter a number: ')
# Will print 'Enter a number: ' to the shell and then wait for you
# to enter a value (Does not have to be a number)

# Copy the code and try it
Noob_Code

función de entrada python

make_a_variable_name = input("Put whatever question, or prompt as Python calls it, that the person will answer here.")
Faithful Ferret

Respuestas similares a “función de entrada python”

Preguntas similares a “función de entrada python”

Más respuestas relacionadas con “función de entrada python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código