Skip to main content

A compilation of additional functions for use in varying purposes in Python

Project description

## AVAILABLE FUNCTIONS

# replace_char_in_string(string: str, newChar: str, index: int) -> str Replaces char in string(str) at position index(int) with newChar(str). Returns str.

# list_to_string(changeList: list) -> str Converts changeList(list) to str. Returns str.

# to_list(to_list) -> list Converts to_list to list. Works with both str and int. Returns list

# list_to_2d_list(changeList: list) -> list Converts changeList(list) to 2-dimensional list. Returns list

# get_key(dictionary: dict, value) Returns key of value in dictionary(dict)

# is_vowel(string: str) -> bool Returns True if all char in string(str) is a vowel. Returns False if not.

# remove_char_in_string(string: str, index: int) -> str Removes char in string(str) at index(int). Returns str

# get_divisors(number: int) -> list Returns list of divisors of number(int)

# is_palindrome(toCheck) -> bool Returns True if toCheck is palindrome. Returns False if not. Works on str and int.

# is_even(number: int) -> bool Returns True if number(int) is even. Returns False if not.

# is_prime(number: int) -> bool Returns True if number(int) is prime. Returns False if not.

Change Log

1.0.1 (27/07/2020)

  • Addition of type hints to functions

  • Updated README

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moreFunctions-1.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page