JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
11 days ago7 views
👨‍💻Programming

# Variables

math = 85

english = 72

python_marks = 90

total_per_subject = 100

student_name = "Ahmed"

pass_marks = 50

# Calculations

total_marks = math + english + python_marks

average_marks = total_marks / 3

total_possible = total_per_subject * 3

percentage = (total_marks / total_possible) * 100

# Checks

passed_math = math >= pass_marks

passed_all = (math >= pass_marks) and (english >= pass_marks) and (python_marks >= pass_marks)

has_letter_A = "A" in student_name

avg_gte_80 = average_marks >= 80

is_percentage_truthy = bool(percentage)

# Print all results

print("Total Marks:", total_marks)

print("Average Marks:", average_marks)

print("Percentage:", percentage)

print("Passed Mathematics:", passed_math)

print("Passed All Subjects:", passed_all)

print("Name contains 'A':", has_letter_A)

print("Average >= 80:", avg_gte_80)

print("Percentage is Truthy:", is_percentage_truthy)

← Back to timeline