Ejemplo 1: entrada de Python
#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')
Ejemplo 2: cómo hacer que el usuario ingrese en Python
#just get input
test = input()
#add a custom message
test = input("Please enter your information: ")
#turning what is inputed into a differnt type of data
test = int(input("Please enter your information: "))
Ejemplo 3: 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)
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)