Question: Q/ using python answer the follwing parts : Part 1 For this part of the lab, write code to iterate over all multiples of 3
Q/ using python answer the follwing parts :

Part 1 For this part of the lab, write code to iterate over all multiples of 3 between 0 and 100 (inclusive), and print the ones that are divisible by 2. Use the range() function to obtain a list of multiples of 3 between 0 and 100. Note: To determine if a number is divisible by 2, use the modulus operator (%) which returns the remainder after dividing two numbers. For example: >>> 100 % 10 >>> 97 % 1 7 Part 2 For this part of the lab, write code to check to see if an element, stored in a variable toFind, exists somewhere in the list. Print out the index of the element, if it exists in the list, and the message "The element does not exist in the list," otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
