Skip to content

Ravikantmahi/Basic-Python-Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

🐍 Python Programming Assignment: Functions

This repository contains simple and beginner-friendly Python functions that solve common problems using basic programming logic.

πŸ“Œ Assignment Questions

  1. βœ… Write a function to find the factorial of a number.
  2. βœ… Write a function that checks whether a number is prime or not.
  3. βœ… Create a function that takes a string as input and returns the number of vowels in it.
  4. βœ… Write a function that accepts a list of numbers and returns the maximum and minimum values.
  5. βœ… Write a Python function to calculate the nth Fibonacci number using recursion.
  6. βœ… Create a function that accepts two numbers and returns their Greatest Common Divisor (GCD).
  7. βœ… Write a function that takes a list and returns a new list with only unique elements.
  8. βœ… Write a function to count the frequency of each word in a given string.
  9. βœ… Write a function that takes a number and returns True if it is a palindrome, otherwise False.
  10. βœ… Create a function that takes a temperature in Celsius and returns it in Fahrenheit.

πŸ“Ž Google Colab Notebook

Click the link below to view and run all the solutions interactively:

πŸ”— Open in Google Colab


πŸ’‘ How to Use

  • 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.

πŸ“š Topics Covered

  • Functions
  • Loops and Conditionals
  • Strings and Lists
  • Recursion
  • Dictionary operations
  • Basic Math and Logic

πŸ‘¨β€πŸ’» Author

Ravi Kant
πŸš€ Portfolio | πŸ“˜ GitHub


⭐️ Show Your Support

If you find this helpful, feel free to ⭐️ star the repo or share it with your friends learning Python!

About

Basic Python Questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published