Skip to content

Code-Shoaib/15-python-projects

Repository files navigation

15-python-projects

Project under working

Projects for junior python developer

Here you will find some simple projects for junior Python developers which I found on the https://www.freecodecamp.org/news/python-projects-junior-developers/ website and some from youtube decided to solve as an exercise. Maybe you'll like them too..
Below is a description of the exercises from the page mentioned above.
  • Calculator
  • Odd or even
  • Mad Libs Game
  • Word Count
  • Biography info
  • What's my acronym?
  • Rock, Paper, Scissors
  • Guess the number
  • Is a palindrome
  • Calculate the tip
  • Email slicer
  • Cafe Managment system
  • Qr-code maker
  • Lyrics generator
  • Password Guessing Game with Hints

Odd Even

Welcome a user then ask them for a number between 1 and 1000.

When the user gives you the number, you check if it's odd or even and then you print a message letting them know.

Example:

Prompt: What number are you thinking? Input: 25 Output: That's an odd number! Have another?


Mad libs game

Ask the user for an input.

This could be anything such as a name, an adjective, a pronoun or even an action. Once you get the input, you can rearrange it to build up your own story.

Word count

Ask the user what's on their mind. Then after the user responds, count the number of words in the sentence and print that as an output.

Example:

Prompt: what's on your mind today? Input: well, it's just a day for me to be an expert in coding Output: oh nice, you just told me what's on your mind in 13 words! To take this a step further, open a file that is handed to you, count the number of words in there, then print it out.


Biography info

Ask a user for their personal information one question at a time. Then check that the information they entered is valid. Finally, print a summary of all the information they entered back to them.

Example: What is your name? If the user enters * you prompt them that the input is wrong, and ask them to enter a valid name.

At the end you print a summary that looks like this:

  • Name: John Doe
  • Date of birth: Jan 1, 1954
  • Address: 24 fifth Ave, NY
  • Personal goals: To be the best programmer there ever was.

What's my acronym?

Ask the user to enter the full meaning of an organization or concept and you'll provide the acronym to the user. For example:

Input -> As Soon As Possible. Output -> ASAP. Input -> World Health Organization. Output -> WHO. Input -> Absent Without Leave. Output -> AWOL.


Rock, Paper, Scissors

This is a popular game played between two people. Each player gets to form one of three shapes using their hand:

rock (a closed fist) paper (a flat hand) scissors (a fist with the index finger and middle finger extended, forming a V) Here's a youtube tutorial on coding up rock-paper-scissors in Python.


Guess the number

You ask a user to guess a number between 1 and 100.

If they guess outside that range, you prompt with an error encouraging them to choose a number within the proper range.

Whenever they guess the wrong number you said that wrong number

A user have only 5 guesses

Finally, when the user eventually guesses the right number you congratulate them and show the number of attempts they had.


Is a palindrome

Ask the user to give you five words. Then check if any of the five words is a palindrome.

A palindrome is a word that remains the same whether it's read forward or backward.

Example:

madam is a palindrome. so is malayalam. But not geeks. Here's some example code from Github.


Calculate the tip

Your goal is to find out exactly how much tip you should give after receiving a service. In this scenario, ask for the total bill. Then display the tip for 18%, 20% and 25%.

Example:

Prompt: what's the total bill for today, please? Input: $55.87 Output: 18% tip is $10.06, which brings your total to $65.93 Remember you want to be nice, so don't forget to round up. To push this more, ask for the number of people involved, then evenly split the tip and total cost among them.

To go even a step further, split unevenly (for example, one person pays 70% of the bill while the other pays 30%)


Email slicer

Collect an email address from the user and then find out if the user has a custom domain name or a popular domain name. For example:

Input: mary.jane@gmail.com Output: Hey Mary, I see your email is registered with Google. That's cool!. Input: peter.pan@myfantasy.com Output: Hey Peter, looks like you've got your own custom setup at MyFantasy. Impressive!. This is a convenient python project that has a lot of use in the future. The program helps get you the username and domain name from an email address.

If you want to push this further, you can customize the application and send a message to the host with this information.


Lyrics generator

Ask a user to choose from a list of 10 songs. When the user does, you print out the lyrics to the song they selected.

Example:

Welcome, please select a select a song from this top 10 songs:

  1. Baby by Bieber
  2. Hotline Bling by Drake
  3. Flawless by Beyonce
  4. Fall by Eminem... You chose Flawless by Beyonce. Here you go:

------- Flawless by Beyonce ------------ I'm out that H, town coming coming down I'm coming down, drippin' candy on the ground H, Town, Town, I'm coming down, coming down Drippin' candy on the ground...

Press * to choose again. To push it further, have at least 3 songs by the same artist.

Next, ask the user to put the name of the artist so you can show them only options by that artist. Then the user can select a specific song from that list.

Qr-Code generator

In this code you will give the link message or something you want to same Qr code of. Then it will make the qr code in your files.

Cafe Managment System

In this system the customer see a menu of cafe where he can order what he wants if the product is not in menu it will show error else if person give 1 order it will ask to it for another if customers want and then show the total bill

Calculator

It is can do basic caluclations save the history of your calculations in your system

Password Guessing game with Hints

It is a simple text-based game where: The computer picks a secret password (word). The user keeps guessing the word. After each guess, the program gives a hint about how close guess. (e.g, How many letters are correct and in the correct place). The game counts how many guesses it took. You can add different difficulty level(shorter or longer passwords).

About

Projects for junior python developer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages