Загрузка...

Python Full Course 2025-2026 in Hindi [ Lecture 31] | Ternary(Short) If Else in Python

This program uses short if–else (ternary operator) to make decisions in a single line.
The student’s grade is assigned by checking marks with multiple ternary conditions instead of long if–else blocks.
The result (Pass/Fail) is decided using a short if–else based on whether marks are 50 or above.
The fee discount is calculated using a ternary operator to apply a 50% discount only if the student has a scholarship.
Overall, short if–else makes the code shorter, cleaner, and easier to read.

URL for next Learning : https://youtu.be/6690tTMlQmg

If you found it helpful, please subscribe, share it with your friends, and help others stay organized too.
💬 I truly appreciate your support — it motivates me to create even more useful tools for you.
Got suggestions or something you'd like me to build next?
👉 Drop your ideas or needs in the comments or messages — I’ll do my best to bring them to life!

Let’s grow and learn together! 🚀

Видео Python Full Course 2025-2026 in Hindi [ Lecture 31] | Ternary(Short) If Else in Python канала Python Full Course 2025-26 in Hindi
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять