Skip to content

thyrdmc/Python-Basic-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto News Alert (crypto-news-alert)

It's the project you can use for follow cryptocurrencies price actions and news. The stock price datas in this project was provided by API requests from the alphavantage webservice. Also analyzes the daily price changes of the selected cryptocurrency and lists the news about it via newsapi webservice. After these steps, the news is sent to your phone as sms via twilio webservice.

You need to take apikey for webservices. After you complete this step, You need to fill constant parameters with your apikeys like;

STOCK_NAME = "BTC"

NEWS_API_KEY = "your_api_key"

STOCK_API_KEY = "your_api_key"

TWILIO_SID = "your_twilio_sid"

TWILIO_AUTH_TOKEN = "your_twilio_auth_token"

Py-Millionaire Knowledge Competition (knowledge-competition with WEB API)

It's the python version of Who Wants to be a Millionaire. The dataset in this project was provided by API requests from the https://opentdb.com/api.php webservice.

- Documentation:

Question Class

*Attributes:

  • text (str) The text of the question. e.g. “The HTML5 standard was published in 2014.”
  • answer (booelan) The answer of the question. e.g True

QuestionMachine Class

*Attributes:

  • question_list (list) The list of the question dataset.
  • question_number (int) The number of the question. e.g Question 1
  • score (int) Number of questions that the user answered correctly. e.g 1
  • current_question (int) Number of current question. e.g 1

*Methods:

  • any_unused_question() Navigate through the dataset to check that all questions have been answered. Returns True or False

  • next_question() Receives the response from the user, and is sent to the function where the response is checked.

  • check_answer(user_answer, correct_answer) Parameter user_answer: (str) User's answer to the question Parameter correct_answer: (str) Correct answer of Question

congrats to user if the user gives the correct answer, shows the user's score

ScreenShot

Password Generator (password-generator)

This project has been developed to Mobile Phone Users.
The project enables users to generate and store secure passwords for the mobile applications(Banking Industry App, Social Media Apps...)

- Documentation:

*Methods:

  • generate_password() Generates Randomly Complex Password for High Level Security

  • save_text() Stores Categorized User Password and Application Information(Facebook, Instagram, GarantiBBVA)

Ekran Resmi 2023-08-26 19 35 58

Time Manager for Students (timeManager)

This project has been developed to increase students' efficiency in studying. The tkinter library was used during the development of the project.

- Documentation:

*Methods:

  • reset_timer() Sets timer to reset for a student who wants to start a new study plan

  • start_timer() Starts the timer depending on what stage of the plan we are in

  • countdown() Determines where we are in the plan. (WORK- LONG BREAK - SHORT BREAK)

*Constants: SB_COLOR, LB_COLOR, RED, YELLOW, DARK_GREEN, FONT_NAME, WORK_MIN, SHORT_BREAK_MIN, LONG_BREAK_MIN, REPS, TIMER

Cost Calculator (costCalculator)

This project was developed to save users from the complexity of calculating the cost of purchases made on Exchanges and Cryptocurrencies. The tkinter library was used during the development of the project.

- Documentation:

*Methods:

  • calculate() It calculates the cost over the data in the csv file.

  • button_clicked() Adds the new data entered in the textboxes by the user to the dataset.

Crossy Road Arcade Game (crossy-road-game)

It's the python version of Crossy Road Game. This project was developed using Turtle library.

- Documentation:

Player Class

*Attributes:

  • The Turtle library is inherited.

*Methods:

  • walk() Provides the object controlled by the user to move.

  • is_finish() Checks if the user has reached the endpoint. Returns True or False

Scoreboard Class

*Attributes:

  • The Turtle library is inherited.
  • level (int) Returns level of the game. e.g. “Level 5”

*Methods:

  • next_level() Provides to switch to the new section of game.

  • game_over() Controls the ending condition of the game. If game is over, prints to screen "Game Over"

  • clear_board() Clears the screen when switching to a new section of game.

CarManager Class

*Attributes:

  • all_cars (array) To store car objects. e.g. “[]”
  • speed (int) Represents the speed of the car. e.g. “5”

*Methods:

  • create_cars() Produces cars at random positions on the initial axis.

  • move() Provides the cars to move.

  • increase_speed() Provides to increase the speed of the cars to a certain extent.

Best Eleven Guessing Game (best-eleven-guessing-game)

This python project is a game that tries to make the fans guess 11 players from Fenerbahce football history. It includes the python version of the project whose mobile application will be made.

Best 11 Guessing Game

T-Hirst's NFT Creator Project (T-Hirst's-painting)

This project was developed to produce NFT images. The works of Damien Hirst were inspired while producing the paintings.

Py-Millionaire Knowledge Competition (knowledge-competition)

It's the python version of Who Wants to be a Millionaire.

- Documentation:

Question Class

*Attributes:

  • text (str) The text of the question. e.g. “The HTML5 standard was published in 2014.”
  • answer (booelan) The answer of the question. e.g True

QuestionMachine Class

*Attributes:

  • question_list (list) The list of the question dataset.
  • question_number (int) The number of the question. e.g Question 1
  • score (int) Number of questions that the user answered correctly. e.g 1

*Methods:

  • any_unused_question() Navigate through the dataset to check that all questions have been answered. Returns True or False

  • next_question() Receives the response from the user, and is sent to the function where the response is checked.

  • check_answer(user_answer, correct_answer) Parameter user_answer: (str) User's answer to the question Parameter correct_answer: (str) Correct answer of Question congrats to user if the user gives the correct answer, shows the user's score

Python-Basic-Project-1 (coffee_machine.py)

This project includes the software prepared for the coffee machine. This coffee machine has 5 different commands for users.

About Software Development Stages;

  • This project was developed in 4 phases.
  • Function check_resources checks the amount of resources for the coffee the user wants.
  • Function check_money compares the price of coffee with the money entered by the user.

Python-Basic-Project-3 (find_your_speciality.py)

This project is for Computer Engineering students. The game guides how they should progress in the sector in line with their interests.

Find Your Speciality

Python-Basic-Project-4 (python_auction.py)

This program has been developed to manage secret auctions.

Python Auction

Python-Basic-Project-5 (caesar_chiper.py)

This project is for encryption and decryption program to users wanna send private message.

Caesar Chiper

Python-Basic-Project-6 (rock-paper-scissors.py)

This project is for playing game with Computer that people who are bored.

Rock Paper Scissors

Python-Basic-Project-7 (hangman.py)

This project is for playing game with Computer that people who are bored.

Hangman

Python-Basic-Project-8 (higher_lower_game.py)

This project includes Game of Guessing Instagram Followers of Famous Persons.

Higher_Lower_Game

Python-Basic-Project-9 (password-generator.py)

This project includes Password Generator App for Users.

Example for Password Generator :

Welcome to the Password Generator!

How many letters would you like in your password?

3

How many symbols would you like?

1

How many numbers would you like?

1

Your password is h6zZ$

Python-Basic-Project-10 (password-generator.py)

This project includes a basic Calculator Program with simple UI for users.

Py-Calc Program

Python-Basic-Project-11 (blackjack-game.py)

This project includes a Blackjack Game with simple UI for users.

BlackJack Game

Python-Basic-Project-12 (guess-number.py)

This project includes a Guess Number Game with simple UI for users.

Guess Number Game

Python-Basic-Project-13 (flatten_and_reverse_function.py)

This project includes Flattening and Reversing functions for Multi-Layer Lists.

Example for Flattening Function :

input: [[1, 'a', ['cat'], 2], [[[3]], 'dog'], 4, 5]

output: [1, 'a', 'cat', 2, 3, 'dog', 4, 5]

Example for Reversing Function :

input: [[1, 2], [3, 4], [5, 6, 7]]

output: [[[7, 6, 5], [4, 3], [2, 1]]

About

This repository contains basic Python project assignments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages