Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python please. thank you! 1. Starts with the following lines of code and continue the theme through the rest of this assignment cars =

In python please. thank you! image text in transcribed
1. Starts with the following lines of code and continue the theme through the rest of this assignment cars = ['audi', 'bmw, 'subaru, 'toyota'] for car in cars: if car == 'bmw: print(car.upper()) else: print(car.title() 2. Checks for equality and displays results (True or False). 3. Checks for inequality and displays results (True or False). 4. Checks whether a value is on the cars list and displays the results with a sentence. 5. Checks whether a value is not on the cars list and displays the results with a sentence. 6. Testes multiple conditions using an if-elif-else chain which includes multiple elif blocks. 7. Add a tuple and print it

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

1. How do most insects respire ?

Answered: 1 week ago

Question

Who is known as the father of the indian constitution?

Answered: 1 week ago

Question

1.explain evaporation ?

Answered: 1 week ago

Question

Who was the first woman prime minister of india?

Answered: 1 week ago