Skip to content

This is a repository of my interaction with Codewars.org and a collection of small logic based scripts.

Notifications You must be signed in to change notification settings

coderms1/py_concepts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’½ Welcome to my py_concepts repo!

🧠 Python Concepts Explored

Simple. Clean. To the point.


This is a personal collection of short, focused Python scripts exploring different ideas, tricks, and algorithmic puzzles. Each file highlights a single concept, practice exercise, or coding pattern.
A majority of these were from challenges on https://www.Codewars.com.


πŸ“‚ Contents

| File Name                 | Concept                                     |
| ------------------------- | ------------------------------------------- |
| 01_generators.py          | Generator functions in action               |
| 02_decorators.py          | Wrapping functions like a boss              |
| 03_dunders.py             | Magic methods and `__stuff__`               |
| 04_frames.py              | Stack frames and flow tracking              |
| 05_lambdas.py             | Anonymous functions β€” quick & clean         |
| 06_args_kwargs.py         | Functions with `*args` & `**kwargs`         |
| 07_list_comprehension.py  | Pythonic one-liners for lists               |
| 08_count_bits.py          | Count 1s in binary representation           |
| 09_duplicate_encode.py    | Encode strings with uniqueness checks       |
| 10_printer_error.py       | Parse & report printer error rates          |
| 11_get_middle.py          | Extract the middle character(s) of a string |
| 12_square_digits.py       | Square every digit in a number              |
| 13_persistence.py         | Multiplicative persistence calculator       |
| 14_expanded_form.py       | Break numbers into expanded place value     |
| 15_find_uniq.py           | Find the unique element in a list           |
| 16_array_diff.py          | Subtract one list from another              |
| 17_create_phone_number.py | Format digit list as a phone number         |
| 18_is_prime.py            | Check if a number is prime                  |
| 19_comp.py                | Compare two arrays by square content        |
| 20_top_3_words.py         | Return top 3 most used words                |
| 21_permutations.py        | Generate all possible permutations          |
| 22_determinant.py         | Calculate the determinant of a matrix       |
| 23_merge_arrays.py        | Merge and clean up array data               |
| 24_switch_it_up.py        | Switch-case style logic in Python           |
| 25_get_count.py           | Count vowels in a string                    |
| 26_simple_calculator.py   | Basic arithmetic calculator                 |
| 27_simple_calc_v2.py      | Improved version of simple calculator       |
| 28_summation.py           | Sum numbers in a sequence                   |
| 29_summation_v2.py        | Alternate summation implementation          |
| 30_plot_1.py              | Basic plotting with Python                  |
| 31_zipping_1.py           | Zipping iterables together                  |
| 32_open_or_senior.py      | Determine membership type from data         |
| 33_open_or_sen_pt2.py     | Extended membership classification logic    |
| 34_switch_it_up.py        | Alternate switch-case logic                 |
| 35_greet.py               | Greetings demo using string formatting      |
| 36_squareOfSquares.py     | Determine if a number is a perfect square   |

πŸš€ Remarks

This repo is my ongoing sandbox for learning, teaching, & exploring Python concepts one mini script at a time. Feel free to fork, test, or roast my code 😎 I am, afterall still a noob!

~ πŸ‘Ύ MS1

About

This is a repository of my interaction with Codewars.org and a collection of small logic based scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages