Discussions Events Study Material Jobs
Input marks and print grade using conditions in Python - Uniwaly

Explore Diverse Conversations

Input marks and print grade using conditions in Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 13:06 PM
marks = float(input("Enter your marks (out of 100): "))

if marks >= 90:
    print("Grade: A+")
elif marks >= 80:
    print("Grade: A")
elif marks >= 70:
    print("Grade: B")
elif marks >= 60:
    print("Grade: C")
elif marks >= 50:
    print("Grade: D")
else:
    print("Grade: Fail")

Tags:

python grade calculator in python python code
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

University of Veterinary & Animal Sciences UVAS Swat

Create a dictionary with keys as subjects and values as marks. Print marks for a given subject using Python

Directorate of Electronic Media & Publications jobs in 2025 apply online

Create a Frequency Dictionary from a Sentence using Python

Input marks and print grade using conditions in Python

Communication & Coordination Officer - The Urban Unit Jobs 2025

Use a dictionary where keys are student names and values are lists of 3 marks Using Python

Basic Calculator with if elif Using Python

Check if Character is a Vowel or Consonant using Python

Child Protection and Welfare Bureau Jobs 2025