for i in range(5):, repeat 5 times, score = int(input("Enter score: ")), ask for a score and store it as a number, if score >= 40:, check if the score is a pass, pass_count = pass_count + 1, add 1 to the pass counter, if score >= 80:, check if the score wins a prize, prize_count = prize_count + 1, add 1 to the prize counter, print("Pass"), show the word Pass on the screen, print("Try again"), show the words Try again on the screen, print("Prize"), show the word Prize on the screen, indentation, shows which lines belong inside the loop or if statement, range(5), creates 5 loop turns: 0, 1, 2, 3 and 4, counter, a variable that keeps score.
0%
Python Match Up
શેર કરો
શેર કરો
શેર કરો
Paullivesey
દ્વારા
સામગ્રીમાં ફેરફાર કરો
પ્રિન્ટ
એમ્બેડ
વધુ
સોંપણીઓ
લીડરબોર્ડ
વધુ બતાવો
ઓછું બતાવો
આ લીડરબોર્ડ હાલમાં ખાનગી છે. તેને સાર્વજનિક કરવા માટે
શેર
પર ક્લિક કરો.
આ લીડરબોર્ડને સ્ત્રોત નિર્માતા દ્વારા નિષ્ક્રિય કરવામાં આવ્યું છે.
આ લીડરબોર્ડ નિષ્ક્રિય છે કારણ કે તમારા વિકલ્પો સ્ત્રોત નિર્માતા કરતા અલગ છે.
વિકલ્પો પાછા લાવો
મેચ અપ
એ ઓપન-એન્ડેડ ટેમ્પલેટ છે. તે લીડરબોર્ડ માટે સ્કોર જનરેટ કરતું નથી.
લોગ-ઇન જરૂરી છે
દૃશ્યમાન શૈલી
ફોન્ટ્સ
સબસ્ક્રિપ્શન જરૂરી
વિકલ્પો
એઆઈ ઉન્નત: આ પ્રવૃત્તિમાં એઆઈ દ્વારા ઉત્પાદિત સામગ્રી શામેલ છે.
વધુ શીખો.
ટેમ્પલેટ બદલો
બધું બતાવો
પ્રવૃત્તિ રમત દરમ્યાન વધુ ફોરમેટ દેખાશે.
પરિણામો ખોલો
કડીની નકલ કરો
ક્યુઆર કોડ
કાઢી નાંખો
આપોઆપ સંગ્રહ થયેલ છે:
?