0% found this document useful (0 votes)
6 views1 page

Exercise CLASS 3

The document outlines five exercises for Python programming practice. These include creating a personalized greeting based on user input, a temperature converter, a simple calculator, a guessing game, and a password validation program. Each exercise focuses on different programming concepts and user interaction.

Uploaded by

Flavien Dzogne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Exercise CLASS 3

The document outlines five exercises for Python programming practice. These include creating a personalized greeting based on user input, a temperature converter, a simple calculator, a guessing game, and a password validation program. Each exercise focuses on different programming concepts and user interaction.

Uploaded by

Flavien Dzogne
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Exercise 1: Name and Age

Write a Python program that asks the user for their name and age. Greet them with a personalized
message.

Exercise 2: Temperature Converter

Create a Python program that converts temperatures between Celsius and Fahrenheit. Allow the
user to input the temperature and choose the conversion unit.

Exercise 3: Simple Calculator

Develop a basic calculator that performs addition, subtraction, multiplication, and division. Prompt
the user for two numbers and an operation.

Exercise 4: Guessing Game

Write a game where the computer generates a random number, and the user tries to guess it.
Provide hints if the guess is too high or too low.

Exercise 5: Password Validation

Create a program that prompts the user to enter a password. Validate the password to ensure it
meets certain criteria (e.g., minimum length, containing uppercase, lowercase, numbers, and special
characters)

You might also like