This repository contains some of the first programs I wrote during my journey learning Python(programming).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Red Starfish 8039118e5f Corrected the copyright text 6 months ago
src Corrected the copyright text 6 months ago
LICENSE Initial commit 7 months ago
README.md Added info about RPS.py 6 months ago

README.md

MY FIRST PYTHON PROGRAMS

Copyright (c) 2020 Abhiseck Paira

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

A COLLECTION OF SHORT PROGRAMS WRITTEN IN PYTHON3

ABOUT THIS COLLECTION

This repository contains some of the first programs I’ve written during my journey of learning Python(programming). I’ve tested this programs GNU/LINUX. I’ll be modifying these programs as I learn new things, and also will be adding new progams too. You can contact me via matrix: @redstarfish:matrix.linux.pizza.

The source codes are in src directory. Though I’ve written all these source codes present here from scrarch but the inspiration and ideas of some of these programs come from Al Sweigart and his excellent book for beginners Automate The Boring Stuff With Python: Pratical Programming For Total Beginners which is also availbale under Creative Commons License and you can read it here.

PROGRAMS IN THIS COLLECTION

  • CoinToss.py - A simple command line coin toss game. In this game the player gets two tries to guess the result of coin toss.

  • epEx.py - This command line program extracts phone numbers, emailIds, links, valid dates from the clipboard and paste the extracted links back to clipboard. In case of links, it changes youtube.com and twitter.com links to privacy respecting invidio.us and nitter.net links and paste them to clipboard.

  • AlphabeticalQuiz.py - In this command line game the player is presented with 5 randomly arranged alphabets and player has to write the correct order as quickly and as many as possible within 60 seconds. The score will be printed on the screen.

  • collatzConjecture.py - Starting with a arbitrary positive integer N, if N is odd then a new number is obtained by: 3N + 1 if N is even then a new number is obtained by: N / 2.
    This way we find a sequence of numbers that terminates with 1 but no one has been able to prove it mathematically. This conjecture is named after Lother Collartz who introduced this idea in 1937. More at Wikipedia.
    This program lets its user put a arbitrary number and prints the collatz sequnce on screen. It aslo shows the highes number the sequence reached.

  • ducks.py - In this simple deduction game, the program assumes a 3 digit random number. The player gets 10 guesses to get the correct number. The program also supplies the player with clues to help the player.

  • BusyIdiot.py - A joke program on how to keep an idiot busy for hours.

  • handFootball.py - Play hand football with computer.

  • RPS.py - A Simple Rock, Paper Scissor game.