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.