Skip to content

Latest commit

 

History

History
125 lines (116 loc) · 8.87 KB

README.md

File metadata and controls

125 lines (116 loc) · 8.87 KB

puzzles-python

Practice task 1

python3 pairs.py 5 10 0 10 5 4.50 6.7 10.8 ''56.6'' 5.5 57..7 NaN czxczxczx dfgdfg5fdg
"57..7" - isn't figure, ommited.
"NaN" - isn't figure, ommited.
"czxczxczx" - isn't figure, ommited.
"dfgdfg5fdg" - isn't figure, ommited.
All pairs:
5.0 + 5.0 = 10
10.0 + 0.0 = 10
0.0 + 10.0 = 10
4.5 + 5.5 = 10
Unique pairs:
5.0 + 5.0 = 10
4.5 + 5.5 = 10
0.0 + 10.0 = 10

Process finished with exit code 0

Practice task 2

python3 -m pip install -r requirements.txt
python3.exe statistic.py

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                                                                         │
  │  Select file from:                                                      │
  │                                                                         │
  │  C:\Users\dvorz\Projects\puzzles-python                                 │
  │                                                                         │
  │                                                                         │
  │    1 - .git\                                                            │
  │    2 - .gitignore                                                       │
  │    3 - .idea\                                                           │
  │    4 - pairs.py                                                         │
  │    5 - README.md                                                        │
  │    6 - requirements.txt                                                 │
  │    7 - statistic.py                                                     │
  │    8 - storage\                                                         │
  │    9 - venv\                                                            │
  │   10 - Exit                                                             │
  │                                                                         │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  >> 8

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                                                                         │
  │  Select file from:                                                      │
  │                                                                         │
  │  C:\Users\dvorz\Projects\puzzles-python\storage                         │
  │                                                                         │
  │                                                                         │
  │    1 - run2019.txt                                                      │
  │    2 - Exit                                                             │
  │                                                                         │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  >> 1

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                                                                         │
  │  Select items, you want to do:                                          │
  │                                                                         │
  │                                                                         │
  │    1 - Amount of lines in file                                          │
  │    2 - Amount of empty lines in file                                    │
  │    3 - Amount of lines with "z" in file                                 │
  │    4 - Amount of "z" in file                                            │
  │    5 - Amount of "and" in file                                          │
  │    6 - All of them                                                      │
  │    7 - Continue                                                         │
  │                                                                         │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  >> 6
File: C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt
Amount of lines in C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt:	9
Amount of empty lines in C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt:	3
Amount of lines with "z" in C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt:	4
Amount of "z" in C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt:	32
Amount of "and" in C:\Users\dvorz\Projects\puzzles-python\storage\run2019.txt:	4
Press Enter to continue...

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                                                                         │
  │  Select file from:                                                      │
  │                                                                         │
  │  C:\Users\dvorz\Projects\puzzles-python\storage                         │
  │                                                                         │
  │                                                                         │
  │    1 - run2019.txt                                                      │
  │    2 - Exit                                                             │
  │                                                                         │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  >> 2

  ┌─────────────────────────────────────────────────────────────────────────┐
  │                                                                         │
  │  Select file from:                                                      │
  │                                                                         │
  │  C:\Users\dvorz\Projects\puzzles-python                                 │
  │                                                                         │
  │                                                                         │
  │    1 - .git\                                                            │
  │    2 - .gitignore                                                       │
  │    3 - .idea\                                                           │
  │    4 - pairs.py                                                         │
  │    5 - README.md                                                        │
  │    6 - requirements.txt                                                 │
  │    7 - statistic.py                                                     │
  │    8 - storage\                                                         │
  │    9 - venv\                                                            │
  │   10 - Exit                                                             │
  │                                                                         │
  │                                                                         │
  └─────────────────────────────────────────────────────────────────────────┘
  >> 10

Process finished with exit code 0