Answered step by step
Verified Expert Solution
Link Copied!

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

  1. Create a list named 'subjects' with the following values: 'Math', 'Science', 'English'
  2. Assign the TYPE of 'subjects' to variable 'subjects_type'
  3. Assign the LENGTH of 'subjects' to variable 'subjects_len'
  4. Using a WHILE-loop ...
  • create a list named 'while_list' containing each element in 'subjects'
  1. Using a FOR-loop ...
  • create a list named 'for_list' containing each element in 'subjects'
  1. Assign the 2nd item in the list 'subjects' to variable 'science'
  2. Assign the TYPE of 'science' to variable 'science_type'
  3. Assign the LENGTH of 'science' to variable 'science_len'
  4. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

Students also viewed these Databases questions

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago