Python Full Course 2025-2026 in Hindi [ Lecture 31] | Ternary(Short) If Else in Python
Автор: Python Full Course 2025-26 in Hindi
Загружено: 2026-01-10
Просмотров: 18
Описание:
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 : • Python Full Course 2025-2026 in Hindi [ Le...
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! 🚀
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: