Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 2.62 KB

File metadata and controls

51 lines (27 loc) · 2.62 KB

Python-Projects

Learning a new programming language is both the most exciting and the most humbling experience. For me, that language has recently been Python, which I’ve been learning over these last few months. And as every coder knows, the best way to learn a language is to apply it in a project. But what happens when you don’t have a giant, ambitious project? For me, that’s where the sandbox comes in. Why not build a few sandcastles before piling up the rocks to our grand ol’ castle?

With that in mind, here are five mini programming projects to get you started on learning Python. The exact solutions aren’t here — that’s where the most important learning comes into play — but there are hints as to the concepts that you should be using. And remember, Google is your friend!

Dice Rolling Simulator

The Goal: Like the title suggests, this project involves writing a program that simulates rolling dice. When the program runs, it will randomly choose a number between 1 and 6. (Or whatever other integer you prefer — the number of sides on the die is up to you.) The program will print what that number is. It should then ask you if you’d like to roll again. For this project, you’ll need to set the min and max number that your dice can produce. For the average die, that means a minimum of 1 and a maximum of 6. You’ll also want a function that randomly grabs a number within that range and prints it. Concepts to keep in mind:

  • Random
  • Integer
  • Print
  • While Loops

A good project for beginners, this project will help establish a solid foundation for basic concepts. And if you already have programming experience, chances are that the concepts used in this project aren’t completely foreign to you.

Password Generator

Write a programme, which generates a random password for the user. Ask the user how long they want their password to be, and how many letters and numbers they want in their password. Have a mix of upper and lowercase letters, as well as numbers and symbols. The password should be a minimum of 6 characters long.

youtube.py

Takes a song name as input and fetches the YouTube URL of the best matching song and plays it.

guess_the_number.py

A simple number guessing game using random module of python

WEB SCRAPING

contains my web scraping programs which uses bs4 and urllib to scrap some pages Basically These are my tutorial files for learning python web scraping PREREQUISITES TO RUN :

  • Python 3.x
  • bs4

Bing wallpaper changer :

Uses bs4 to scrape bing wallpaper of the day and changes the wallpaper.

Bing wallpaper downloader :

Uses bs4 to download bing wallpaper of the day