This repository contains simple and beginner-friendly Python functions that solve common problems using basic programming logic.
- β Write a function to find the factorial of a number.
- β Write a function that checks whether a number is prime or not.
- β Create a function that takes a string as input and returns the number of vowels in it.
- β Write a function that accepts a list of numbers and returns the maximum and minimum values.
- β Write a Python function to calculate the nth Fibonacci number using recursion.
- β Create a function that accepts two numbers and returns their Greatest Common Divisor (GCD).
- β Write a function that takes a list and returns a new list with only unique elements.
- β Write a function to count the frequency of each word in a given string.
- β
Write a function that takes a number and returns
True
if it is a palindrome, otherwiseFalse
. - β Create a function that takes a temperature in Celsius and returns it in Fahrenheit.
Click the link below to view and run all the solutions interactively:
π Open in Google Colab
- Clone or download this repo.
- Open the notebook in Google Colab, Jupyter Notebook, or run the scripts in any Python environment.
- Understand and experiment with each function to strengthen your basics.
- Functions
- Loops and Conditionals
- Strings and Lists
- Recursion
- Dictionary operations
- Basic Math and Logic
Ravi Kant
π Portfolio | π GitHub
If you find this helpful, feel free to βοΈ star the repo or share it with your friends learning Python!