Skip to content

A repository organizing a set of Python exercises, and my solutions to them during my learning. Comments, constructive criticism and contributions are welcome!

License

Notifications You must be signed in to change notification settings

E-ternalSpring/Learning-Python

Repository files navigation

Learning-Python

A repository organizing a set of Python exercises, and my solutions to them during my learning. Comments, constructive criticism and contributions are welcome!

Summary

  1. Introductory Level Questions

Ex001 - Create a program that writes "Hello world" on the screen.

Ex002 - Make a program that reads a person's name and displays a welcome message.

Ex003 - Create a program that adds two numbers and displays the result of the sum between them.

Ex004 - Create a program that reads something through the keyboard, and shows on the screen its primitive type and all possible information.

Ex005 - Create a program that reads an integer and displays its successor and predecessor on the screen.

Ex006 - Create an algorithm that reads a number and displays its double, triple, and square root.

Ex007 - Develop a program that reads a student's two grades, calculates and displays their average.

Ex008 - Write a program that reads a value in meters, and displays it converted to Kilometers, Hectometers, Dekameters, Decimeters, Centimeters, and Millimeters.

Ex009 - Write a program that reads any integer, and displays its multiplication table on the screen.

Ex010 - Create a program that reads how much money a person has in their wallet, and shows how many dollars they can buy with that money.

Ex011 - Write a program that reads the width and height of a wall in meters, calculates its area and the amount of paint needed to paint it, knowing that each liter of paint paints an area of 2m².

Ex012 - Make an algorithm that reads the price of a product and displays its new price, with a 15% discount.

Ex013 - Make an algorithm that reads an employee's salary and displays their new salary with a 15% increase.

Ex014 - Write a program that converts a temperature typed in C° to F°.

Ex015 - Write a program that asks the number of kilometers traveled by a rented car and the number of days for which it was rented. Calculate the price to pay, knowing that the car costs R$60.00 per day and R$0.15 per km driven.

Ex016 - Create a program that reads any real number from the keyboard, and displays its entire portion on the screen.

Ex017 - Write a program that reads the length of the opposite and adjacent sides of a right triangle, calculates and displays the length of the hypotenuse.

Ex018 - Write a program that reads any angle and displays the value of the sine, cosine and tangent of that angle on the screen.

Ex019 - Write a program that reads 4 names and randomly chooses one of them.

Ex020 - Write a program that reads 4 names and displays them in random order.

Ex021 - Make a program that opens and plays the audio from an MP3 file.

Ex022 - Create a program that reads a person's full name and displays: The name in uppercase and lowercase; How many letters does it have, without considering spaces; What is the first name and how many letters does it have.

Ex023 - Write a program that reads a number from 0 to 9999, and displays its unit, ten, hundred and thousand on the screen.

Ex024 - Create a program that reads the name of a city, and indicates whether or not it starts with the name "Santo".

Ex025 - Create a program that reads a person's name and tells if he or she has "Silva" in their name.

Ex026 - Write a program that reads a sentence on the keyboard and shows how many times does the letter "A" appear, and in what position does it first and last appear in.

Ex027 - Write a program that reads a person's full name, then displays the first and last names separately.

Ex028 - Write a program that makes the computer randomize an integer between 1 and 5, and ask the user to guess the randomized number. The program then, should write on the screen if the user was wrong or right.

Ex029 - Write a program that reads a car's speed. If it exceeds 80 km/h, show a message saying that it has been fined. The fine will cost R$7,00 per Km above the limit.

Ex030 - Create a program that reads an integer and shows on the screen whether it is odd or even.

Ex031 - Develop a program that asks for the distance of a trip in kilometers and calculates the price of the ticket. There will be a fee of R$0.50 per km for trips of up to 200 km and R$0.45 for longer trips.

Ex032 - Make a program that reads any year and shows if it is a leap year.

Ex033 - Write a program that reads 3 numbers and shows which is the biggest and which is the smallest.

Ex034 - Write a program that asks for an employee's salary and calculates the amount of his raise. For salaries greater than R$1,250.00, calculate a 10% increase. For salaries below or up to this amount, calculate a 15% increase.

Ex035 - Develop a program that reads the length of three lines, and tells the user whether or not they can form a triangle.

About

A repository organizing a set of Python exercises, and my solutions to them during my learning. Comments, constructive criticism and contributions are welcome!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published