Question: Write a program named types _ practice.py that performs the following actions. Each part should take only one line of code. Create a string variable
Write a program named typespractice.py that performs the following actions. Each part should take only one line of code.
Create a string variable containing the name of your favorite book.
Print the number of characters of your string variable. This must use Pythons len function.
Create a list containing the names of your hobbies, and store that list into a variable.
Print the last element in your list. This must use a list index to access the last element.
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
