Git Product home page Git Product logo

learning_python's Introduction

Hi there πŸ‘‹

I am Roman, sometimes Roma.

I use TDD as the main practice in the software development.

Some books in section "must for read":

  • πŸ“– Python Crash Course: A Hands-On, Project-Based Introduction to Programming
  • 🐘 PHP 8 Objects, Patterns, and Practice
  • πŸ’» The Pragmatic Programmer
  • β˜• Effective Java
  • πŸ— Designing Data-Intensive Applications

learning_python's People

Contributors

mvchn avatar savag21 avatar

Stargazers

 avatar

Watchers

 avatar

learning_python's Issues

Number guesser (simple gameplay)

The computer must generate a random number and store it in the variable.
The computer must ask a user about the number, for example, "what is a number?".

A User can guess the number by printing it on the keyboard.

When the printed number is equal to generated, the computer must show a message that the user wins.
When the printed number is not equal to generated, the computer must show a state of the printed number. (less or more)

add readme

  • докумСнтація
  • git
  • bash

Linear search implementation

Input:

  • a list (array, set, dictionary) A with n elements. The element can be a book, for example.
  • value x to find

a function should find and return an index of a book x in the list A

number_guess improvements

Signboard changes:

  1. Format output
  2. Default button choice for the opening

Business changes:

  1. Number choice should be used in the cycle
  2. Limit steps

User stories

User can:

  1. see the actual storage state
  • ID
  • book name
  1. see input, enter value ID
  2. enter the button
  3. see book details

Landing updates

  1. Load data from csv file
  2. Show the first 10 records on the first screen

Create an abstract Homo class

Also can be an interface

Homo can be inverted for the Duck, for example:

class Homo: #define interface

def init(self, name)

def get_safe_status(self)

def get_food(self)

Check current time

I want to get information about the current minute.
Is it odd or not?

Lesson 20

in lesson20.py:

  • find an index of value 10 and print if exists
  • shuffle list
  • find an index of value 12 and print if exists
  • remove two random items
  • sort items in the result list

Demo crashhed

python main.py
Traceback (most recent call last):
File "main.py", line 29, in
item = Book(pieces[0].strip(), pieces[1].strip(), pieces[2].strip(), pieces[3].strip(), pieces[4].strip(), pieces[5].strip())
IndexError: list index out of range

Numbers Translator

I want to have a function for translating Arabic numbers to Roman numbers.
Example:
36 == XXXVI

NumberGuesser (number_guesser) v.2.0

Copilot instructions:

The computer must generate a random number and store it in the variable.
The user must enter a number from the keyboard and store it in the variable.

The computer must compare the two numbers and display the result on the screen.

If the user's number is greater than the computer's number, the computer must display the message "You win!"
If the user's number is less than the computer's number, the computer must display the message "You lose!"
If the user's number is equal to the computer's number, the computer must display the message "Draw!"

The computer must ask the user if he wants to play again.

If the user enters "Y" or "y", the computer must start the game again.
If the user enters "N" or "n", the computer must display the message "Goodbye!" and end the program.

FizzBuzz implementation

We have a range of integers from 1 to 101.

When the range item is divided by 3 and 5 then print fizz_buzz.
When the range item is divided by 5 then print buzz.
When the range item is divided by 3 then print fizz.

Else print item value, odd or even.

Fix Shelf class

Actual behavior:

  • Book cannot be added to the Shelf

Expected Behaviour

  • Book can be added to the Shelf

Simple archivator

We have a string with symbol duplicates, for example "AAAATTBBNOOOOS..."
String must be archived in duplicated symbols.

Create menu.py

The menu shows categories, items, operations, and ways for running.
Optional parameters:

  • weight
  • amount
  • markers, tags

Better linear search

Linear search can be cleaner.
Current realization checks every list item in the loop.

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.