Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PARTICIPATION ACTIVITY 5 . 5 . 2 : Creating for loops. Complete the for loop statement by giving the loop variable and container. 1 )

PARTICIPATION ACTIVITY
5.5.2: Creating for loops.
Complete the for loop statement by giving the loop variable and container.
1)
Iterate over the given list using a variable called my_pet.
for
in ['Scooter', 'Kobe', 'Bella']:
# Loop body statements
Check
Show answer
2)
Iterate over the list my_prices using a variable called price.
for
:
# Loop body statements
Check
Show answer
3)
Iterate the string '911' using a variable called number.
for
:
# Loop body statements
Check
Show answer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions