Question: begin{tabular}{|l|l|} hline Code 1 & def repeat_word (word, num): print (word * num) hline #-main-ts repeat_word (yes, 5) repeat_word (huh?, 2) end{tabular}

 \begin{tabular}{|l|l|} \hline Code 1 & def repeat_word (word, num): print (word* num) \\ \hline \#-main-ts \\ repeat_word ("yes", 5) \\ repeat_word ("huh?",2) \end{tabular} 1. Using Code 1 as an example; what line of

\begin{tabular}{|l|l|} \hline Code 1 & def repeat_word (word, num): print (word * num) \\ \hline \#-main-ts \\ repeat_word ("yes", 5) \\ repeat_word ("huh?", 2) \end{tabular} 1. Using Code 1 as an example; what line of code could you write to repeat your own name 100 times on the screen using the repeat_word() function? 2. Explain why there is no output to Code 3. 3. Consider Code 5 ; why is used on the first print statement in the function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!