filmov
tv
python program to validate the mark range using exception handling. (range between 1-100)

Показать описание
Hello Programmers, Welcome to my channel.
In this video you will learn about how to write a python program to validate the mark range using exception handling. (range between 1-100)
Python Scripts
========================
Python Functions Solved
========================
Python Programs Solved
========================
Python 3 Tutorial - Code
=============================
"""
write a python program to validate the mark range using exception handling. (range between 1-100)
"""
def check_marks(marks):
if not (1 less_than_symbol= marks less_than_symbol= 100):
raise ValueError("Error : Marks should be in range of 1 - 100")
try:
number = int(input("Enter Student Mark: "))
check_marks(number)
print(f"Given value {number} is valid marks")
except ValueError as msg:
print(msg)
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
In this video you will learn about how to write a python program to validate the mark range using exception handling. (range between 1-100)
Python Scripts
========================
Python Functions Solved
========================
Python Programs Solved
========================
Python 3 Tutorial - Code
=============================
"""
write a python program to validate the mark range using exception handling. (range between 1-100)
"""
def check_marks(marks):
if not (1 less_than_symbol= marks less_than_symbol= 100):
raise ValueError("Error : Marks should be in range of 1 - 100")
try:
number = int(input("Enter Student Mark: "))
check_marks(number)
print(f"Given value {number} is valid marks")
except ValueError as msg:
print(msg)
Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners