This repository contains solutions for a series of basic Python exercises. Each exercise demonstrates various programming concepts, including conditionals, loops, and mathematical operations.
-
MonthNames.py
A program that reads an integer value between 1 and 12 from the user and prints the corresponding month name. -
CinemaTicket.py
A program to calculate ticket price based on age: full price for adults, half price for those under 16, and one-third price for seniors 60+. -
BodyMassIndex.py
A program to calculate the Body Mass Index (BMI) based on weight and height, and provide the corresponding weight status (Underweight, Normal, Overweight, or Obese). -
GreatestNumber.py
A program to find the greatest of three numbers provided by the user. -
Factorial.py
A program to find the factorial of a number using loops. -
ReverseNumber.py
A program to reverse a number using awhile
loop. -
MultiplesOfNumber.py
A program to find and print the multiples of a number up to a specified limit. -
BreakLoop.py
A program that takes user input and prints the input, continuing until the user types 'done'. -
FizzBuzz.py
A program that prints the numbers from 1 to 10, replacing multiples of 3 with "Fizz", multiples of 5 with "Buzz", and multiples of both with "FizzBuzz". -
Pattern.py
A program that prints a number pattern in a descending order.