Skip to content

SachinNishal/python-code-snippets

Repository files navigation

Python-code-snippets

  • Useful code snippets written in python3.
  • give a star if you found this repo helpful.

How to Run


  • helloWorld - a simple hello world application.
  • capitalize - code snippet that converts every first letter of words in a given text string.
  • factorial - find factorial of a given number.
  • collatzSequence - find collatz sequence of a given number.
  • fizzBuzz - solution to fizzBuzz.
  • palindrome - find if given string is a palindrome.
  • simpleCalculator - calculate +, -, /, * of two given numbers.
  • fibonacci - display fibonacci series upto a given no. of terms.