Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 8 Create a list named 'subjects' with the following values: 'Math', 'Science', 'English' Assign the TYPE of 'subjects' to variable 'subjects_type' Assign the LENGTH
Question 8
- Create a list named 'subjects' with the following values: 'Math', 'Science', 'English'
- Assign the TYPE of 'subjects' to variable 'subjects_type'
- Assign the LENGTH of 'subjects' to variable 'subjects_len'
- Using a WHILE-loop ...
- create a list named 'while_list' containing each element in 'subjects'
- Using a FOR-loop ...
- create a list named 'for_list' containing each element in 'subjects'
- Assign the 2nd item in the list 'subjects' to variable 'science'
- Assign the TYPE of 'science' to variable 'science_type'
- Assign the LENGTH of 'science' to variable 'science_len'
- Using a FOR-loop ...
- create a list named 'science_list' containing each character in 'science'
print("QUESTION 8 - ANSWERS") print(subjects) print(subjects_type) print(subjects_len) print(while_list) print(for_list) print(science) print(science_type) print(science_len) print(science_list)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started