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
द्वारा
कंटेंट को एडिट करें
प्रिंट
एम्बेड
अधिक
कार्य
लीडरबोर्ड
अधिक दिखाएं
कम दिखाएं
यह लीडरबोर्ड अभी निजी है।
शेयर
पर क्लिक करें इसे सार्वजनिक करें।
इस लीडरबोर्ड को रिसोर्स ओनर ने डिसेबल कर दिया है।
यह लीडरबोर्ड डिसेबल है क्योंकि आपके विकल्प रिसोर्स ओनर से अलग हैं।
पूर्वस्थिति विकल्प
मैच अप
एक ओपन एंडेड टेम्पलेट है। यह लीडरबोर्ड के लिये स्कोर उत्पन्न नहीं करता है।
लॉग ईन आवश्यक
दृश्य शैली
फ़ॉन्ट
सदस्यता आवश्यक है
विकल्प
एआई संवर्धित: इस गतिविधि में एआई द्वारा उत्पन्न सामग्री शामिल है।
और जानो।
टेम्पलेट स्विच करें
सभी दिखाएं
गतिविधि (एक्टिविटी) खेलते समय अधिक फार्मेट दिखाई देंगे।
खुले परिणाम
लिंक कॉपी करें
क्यूआर कोड
डिलीट
ऑटो-सेव पुनःस्थापित करें:
?