Code Monkey home page Code Monkey logo

python_conditionals_grade_12's Introduction

Python Conditionals

Python Assignment Grade 12 Conditionals with GUI

Setup

  • Download Code
    • git clone https://github.com/Florian325/Python_Conditionals_Grade_12.git
  • Install packages
    • pip install -r requirements.txt

Run Program

  • All tasks
    • python main.py
  • Specific task
    • python <task_number>.py

Tasks Overview

  • Task 1: Odd or Even?
    • Write a Python program that asks the user for an integer and then determines whether it is odd or even. Print an appropriate message.
  • Task 2: Grade Calculator
    • Write a Python program that takes a numerical grade as input and prints the corresponding letter grade according to the following scale:
      • A: 90-100
      • B: 80-89
      • C: 70-79
      • D: 60-69
      • F: 0-59
  • Task 3: Leap Year Checker
    • Write a Python program that checks if a given year is a leap year. The program should print whether the year is a leap year or not.
  • Task 4: Age Classifier
    • Write a Python program that asks the user for their age and then classifies it into the following categories:
      • Infant: 0-2 years
      • Toddler: 3-5 years
      • Child: 6-12 years
      • Teenager: 13-19 years
      • Adult: 20+ years
  • Task 5: Triangle Type Checker
    • Write a Python program that asks the user for three angles and determines if they form an equilateral, isosceles, or scalene triangle.
      • Equilateral: All three angles are equal.
      • Isosceles: At least two angles are equal.
      • Scalene: No angles are equal.
  • Task 6: Largest of Three Numbers
    • Write a Python program that takes three numbers as input and prints the largest one.
  • Task 7: Positive or Negative?
    • Write a Python program that takes a number as input and determines whether it's positive, negative, or zero.

python_conditionals_grade_12's People

Contributors

florian325 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.