Wednesday, May 26, 2021

Year Level Checker in Python

 I wrote this simple program to demonstrate how to declare and use if statement in Python programming language. What the program does it will ask the user to give a number 1 for Freshmen, 2 for Sophomore, 3 for Juniors, and 4 for Seniors. I hope you like this tutorial and thank you very much,

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

# Jake Rodriguez Pomperada, MAED-IT, MIT
# Year_Level.py
# May 26, 2021 Wednesday
# Bacolod City, Negros Occidental

print();
print("\tYear Level Checker in Python");
print();
year_level = int(input("\tWhat is your year level? "));
print();
if (year_level == 1) :
print("\tThe given year level is ",year_level,'.');
print();
print("\tYou are belong to Freshmen.");

if (year_level == 2) :
print("\tThe given year level is ",year_level,'.');
print();
print("\tYou are belong to Sophomore.");

if (year_level == 3) :
print("\tThe given year level is " ,year_level,'.');
print();
print("\tYou are belong to Juniors.");

if (year_level == 4) :
print("\tThe given year level is " ,year_level,'.');
print();
print("\tYou are belong to Seniors.");
print();
print("\tEND OF PROGRAM");


No comments:

Post a Comment