alexhawj06
alexhawj06 alexhawj06
  • 17-11-2020
  • Computers and Technology
contestada

Ask the user for their full name (using a single input), write a section of code below that will correctly print the users first name and last name on separate lines.

Respuesta :

Cytokine
Cytokine Cytokine
  • 17-11-2020

name = input("Enter your name: ")

lst = name.split()

print(lst[0])

print(lst[1])

We split the name apart at the spaces and print out the object at index 0, which is the first name and at index 1, which is the last name.

I hope this helps!

Answer Link

Otras preguntas

From his mother's loving arms, Wind-Wolf was placed in a secure and specially designed Indian baby basket. His father and the medicine elders conducted another
For thousands of years, man has hunted whales for food. Ambergris, a waxy material produced by some whales, has been valued as a perfume ingredient. In the 19th
One of the factors of 8x3 – 800x is ____.
which polynomial can be simplified to a difference of squares? 10a2 3a – 3a – 16 16a2 – 4a 4a – 1 25a2 6a – 6a 36 24a2 – 9a 9a 4
find the gcf of the terms of the polynomial. 44x^5 16x^3 a. 4x^5 b. x3 c. 4x^3 d. 16x
The trapezoid in the figure has equal nonparallel sides. The upper base is 6, the lower base is 16, and the diagonal is 12. What is the altitude of the trapezoi
Multiply 6⁄5 × 25⁄24 . A. 144⁄125 B. 4⁄5 C. 125⁄144 D. 5⁄4
The Abbasids sought to lessen the power of the by moving their capital to Baghdad.
A ratio compares two numbers by division. Is this true or false?
i need help with this