Question: 3 Q1: Create a string called Q1 with the characters Data Science for all! Q1 = 'Data Science for all!' Q2: Create a function called
3
Q1: Create a string called Q1 with the characters "Data Science for all!" Q1 = 'Data Science for all!' Q2: Create a function called Q2 that loops through and prints each character in Q1. For example: The string "Data" would print: def Q2(): for char in Q1: print ( char) Q3: Create a function called Q3 that loops through each character in Q1 and prints "A" for each character, For example: The string "Data" would printStep by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
