A professional, comprehensive Python math and string utility library for interviews, competitive programming, and educational purposes.
is_even,is_odd,is_positive,is_negativeswap,largest_of_three,sum_first_nfactorial,power,multiplication_tablesum_even_range,sum_odd_range
count_digits,reverse_number,sum_digits,product_digitsis_palindrome_number,is_disarium,is_neon,is_spyis_duck,is_harshad,max_digit,min_digitcount_eo_digits(Even/Odd count),sum_even_digits,sum_odd_digits
is_prime,primes_in_range,sum_primes,prime_factorsgcd,lcm,are_coprime,is_composite
is_armstrong,is_perfect,is_abundant,fibonacci_seriesis_strong(formerly Krishnamurthy),is_happy,is_magicis_perfect_square,is_perfect_cube,is_triangular
count_vc(Vowels/Consonants),no_spaces,char_freqdup_chars,is_anagram,first_non_rep,first_rep
max_list,second_max,unique(Remove duplicates)rotate_left,rotate_right
pip install infeimport infe
# Check for a Strong (Krishnamurthy) number
print(infe.is_strong(145)) # True
# String operations
v, c = infe.count_vc("Hello World")
print(f"Vowels: {v}, Consonants: {c}")
# List operations
my_list = [10, 20, 30, 20, 10]
print(infe.unique(my_list)) # [10, 20, 30]pip install pytest
pytestThis project is licensed under the MIT License - see the LICENSE file for details.