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

Input marks and print grade using conditions in Python

How to Keep a Camera Stream Active Across Pages Without Reinitializing the Camera on Each Page?

Virtual University of Pakistan Admission Process

Describe the process of microteaching by focusing its reflective nature in the development of novice teachers. What is the role of supervisor in this process?

پاکستانی ڈاکٹر کو کینیڈا کے بڑے سول اعزاز 'آرڈر آف کینیڈا "سے نواز دیا گیا

University of Veterinary & Animal Sciences UVAS Swat

National University of Computer and Emerging Sciences Admission Process

Content Writing Prompt Using ChatGPT and DeepSeek

Syngenta Pakistan Apprenticeship Program 2025

International Scholarship without IELTS 2025