Giter Site home page Giter Site logo

python---small-projects's Introduction

Python---Small-Projects

Simple Projects in python to play around

1. Guess the Number Game

Welcome to the "Guess the Number" game! This simple Python script generates a random number between 1 and 100, and the user has to guess the correct number. The game provides feedback after each guess, guiding the user to find the target number.

How to Play

-> Run the script in a Python environment. -> The program will generate a random target number between 1 and 100. -> Enter your guess when prompted or type "QUIT" to exit the game. -> The program will provide feedback on whether your guess is correct, too small, or too big. -> Keep guessing until you find the correct number or choose to quit.

Prerequisites

Make sure you have Python installed on your machine. You can download Python from python.org.

Running the Script

python3 guess_the_number.py

Gameplay Example

Guess the number or type QUIT to exit: 50 Guess is too small. Guess a bigger number. Guess the number or type QUIT to exit: 75 Guess is too big. Guess a smaller number. Guess the number or type QUIT to exit: 60 Guess is too small. Guess a bigger number. Guess the number or type QUIT to exit: 70 SUCCESS! You guessed the correct number.

2. Random Password Generator

This Python script serves as a simple random password generator. It generates a secure password with a default length of 8 characters, combining uppercase and lowercase letters, digits, and punctuation symbols.

Customization

You can customize the length of the generated password by modifying the password_len variable in the script.

Running the Script

python3 generate_password.py

Feel free to contribute, report issues, or suggest improvements! Enjoy playing around with python!

python---small-projects's People

Contributors

suchithra-232 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.