Question: i = 1 ; k = 0 ; while ( i = = 1 ) number = play _ game ( ) ; k =

i=1;
k=0;
while(i==1)
number=play_game();
k=k+1;
data(k)=number;
s=input('Would you like to play again (y/n)?','s');
if(s=='y')
i=1;
else
i=0;
end

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!