Question: #Type in this code below, complete the lines / code where asked. Answer all questions in the code. name = input ( Please enter
#Type in this code below, complete the linescode where asked. Answer all questions
in the code.
name inputPlease enter your first name:
printname
length lenname
printThe length of this name is: length
fi name
printThe first initial is: fi
printThe second to the last letter of the string is: namelength
#What is happening with the above statement? Why?
#Rewrite the above line to correctly display the second to last letter of the string
segment name:
printsegment
#What does the first number represent? What does second number represent?
#Use different first and second numbers and observer results.
lname inputPlease enter your last name:
fullname #write the code to concatenate the first and last names and print out
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
