Skip to content

katarzynaadamczyk/Tasks_in_Python

Repository files navigation

Different tasks solved using Python.

Some interesting tasks I found and solved them using Python 3. This project is under development, when I find something interesting I keep adding it to this repository.

Table of contents

Technologies:

  • Python 3.9
  • Library Hashlib
  • Library Itertools
  • Library Math
  • Library Re
  • Library String

Automate_the_boring_stuff

My solutions to projects described in 'Automate the boring stuff with Python' by Albert Sweigart. Each individual .py file solves problem given at the end of its title's chapter (e.g. chapter_3.py solves problem described at the end of chapter 3, etc.).

Battleship_field_validator

My solution to task found on https://www.codewars.com/kata/52bb6539a4cf1b12d90005b7.

Caesar_2:

Second variation on Ceasar cipher, task from codewars.com (https://www.codewars.com/kata/55084d3898b323f0aa000546).

Chain_lightning_challenge:

My solution to challenge: https://challengerocket.com/chain-lightning-challenge/. Further description is in description.txt in the folder Chain_lightning_challenge.

Crack_the_pin:

Solution to following problem found on Codewars: https://www.codewars.com/kata/5efae11e2d12df00331f91a6

Determine_if_number:

Solution to following problem found in Daily Interview Pro newsletter (https://www.techseries.dev/daily):
Given a string that may represent a number, determine if it is a number. Here's some of examples of how the number may be presented:
'"123" # Integer'
'"12.3" # Floating point'
'"-123" # Negative numbers'
'"-.3" # Negative floating point'
'"1.5e5" # Scientific notation'
Here's some examples of what isn't a proper number:
'"12a" # No letters'
'"1 2" # No space between numbers'
'"1e1.2" # Exponent can only be an integer (positive or negative or 0)'
Scientific notation requires the first number to be less than 10, however to simplify the solution assume the first number can be greater than 10. Do not parse the string with int() or any other python functions.

Exercism:

My solutions to problems I found more interesting during my path on exercism.

Int32_to_IPv4:

Solution to following problem found on Codewars: https://www.codewars.com/kata/52e88b39ffb6ac53a400022e

Irreducible_sum_of_rationals:

Solution to following problem found on Codewars: https://www.codewars.com/kata/5517fcb0236c8826940003c9

Linked_lists:

Password_cracker:

Solution to following problem found on Codewars: https://www.codewars.com/kata/59146f7b4670ba520900000a

Play_with_arrays:

Solution to problems regarding arrays.

Tasks_about_graphs:

Solutions to problems with graphs.

  • max_sum - Given an undirected graph consisting of N vertices, numbered from 1 to N, and M edges. The graph is described by two arrays, A and B, both of length M. A pair (A[K], B[K]), for K from 0 to M-1, describes an edge between vertex A[K] and vertex B[K]. Task is to assign all values from the range [1, N] to the vertices of the graph in such a way that one number is given to one vertice and sum over all edges of the values at the edges' endpoints is maximal.
  • root_to_leaf_sum - Solution to following problem found on LeetCode: https://leetcode.com/problems/sum-root-to-leaf-numbers/

Tasks_about_strings:

Solutions to problems with strings.

Weird_prime_generator

Solution to following problem found on Codewars: https://www.codewars.com/kata/562b384167350ac93b00010c

Newest_solutions

march 2023:

  • decode_int (done)
  • excel_sheet (done)
  • morse_code (in progress)
  • TheBee (in progress)

About

My solutions to some tasks I found online.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages