0

Ejercicio Pytho

No puedo hacer este ejercicio, si alguien me pudiera ayudar le agradecería mucho Escribe un programa que le pida al usuario una entrada y la muestre en la pantalla. Continuarás trabajando en este código después de la próxima lección. Tarea Completa el código para pedirle al usuario una entrada, guárdala en la variable name y muéstrala en la pantalla.

21st Nov 2024, 3:12 PM
Mauricio Cisternas Barbaguelatta
Mauricio Cisternas Barbaguelatta - avatar
7 Réponses
+ 3
I finally got it, it was like this: name = input() print(name)
21st Nov 2024, 5:58 PM
Mauricio Cisternas Barbaguelatta
Mauricio Cisternas Barbaguelatta - avatar
+ 2
You still need to ask the user for the input. Right now you're hard coding it, but there should be a hint in the assignment about which function you should use to get that input the problem is asking about.
21st Nov 2024, 4:59 PM
Justice
Justice - avatar
+ 1
What is your attempt so far?
21st Nov 2024, 3:34 PM
Justice
Justice - avatar
+ 1
I type this to solve the problem: name = ("Tom") print("hello", name) and I get this response: The error occurs because Tom must be in quotes name = "Tom"
21st Nov 2024, 3:57 PM
Mauricio Cisternas Barbaguelatta
Mauricio Cisternas Barbaguelatta - avatar
+ 1
Right, so did you remove the parethesis and run it again? You're on track.
21st Nov 2024, 4:02 PM
Justice
Justice - avatar
0
I can't do this exercise, if someone could help me I would really appreciate it Write a program that asks the user for input and displays it on the screen. You will continue working on this code after the next lesson. Assignment Complete the code to ask the user for input, save it in the variable name and display it on the screen.
21st Nov 2024, 3:13 PM
Mauricio Cisternas Barbaguelatta
Mauricio Cisternas Barbaguelatta - avatar
0
still not working
21st Nov 2024, 4:53 PM
Mauricio Cisternas Barbaguelatta
Mauricio Cisternas Barbaguelatta - avatar