Lesson 9 of 34

elif: ಎರಡಕ್ಕಿಂತ ಹೆಚ್ಚು ಆಯ್ಕೆಗಳು

8 min 25 XP

ಎರಡಕ್ಕಿಂತ ಹೆಚ್ಚು ಆಯ್ಕೆಗಳಿದ್ದರೆ elif (else if) ಬಳಸಿ. Python ಮೇಲಿನಿಂದ ಕೆಳಗೆ ಪರಿಶೀಲಿಸಿ, True ಆದ ಮೊದಲ ಭಾಗವನ್ನು ಮಾತ್ರ ಓಡಿಸುತ್ತದೆ.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

ಕ್ರಮ ಮುಖ್ಯ! ದೊಡ್ಡ ಮಿತಿ (>= 35) ಮೊದಲು ಇಡಿ, ಇಲ್ಲದಿದ್ದರೆ 40 ಕೂಡ “Warm” print ಮಾಡುತ್ತದೆ.

ಇಲ್ಲಿದೆ ಅಂಗಡಿ ರಿಯಾಯಿತಿಯ ಉದಾಹರಣೆ. Input box ನಲ್ಲಿ ಬೇರೆ ಬೇರೆ ಮೊತ್ತ ಪ್ರಯತ್ನಿಸಿ.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

Challenge

+25 XP

input() ಮೂಲಕ marks ಓದಿ grade print ಮಾಡಿ: 90 ಅಥವಾ ಹೆಚ್ಚು → A 75 ಅಥವಾ ಹೆಚ್ಚು → B 50 ಅಥವಾ ಹೆಚ್ಚು → C ಉಳಿದೆಲ್ಲಾ → Fail

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.