Navigation

  • index
  • next |
  • previous |
  • PyHowTo: 1798 tasks and 2296 solutions »
  • Basic »

Table of Contents

Python v3.7 HowTos:

  • ------ Algorithms ------
  • Recursion
  • Backtracking
  • Dynamic Programming
  • Greedy
  • Sort
  • Binary Search
  • Depth First Search [DFS]
  • Breadth First Search [BFS]
  • Binary Search Tree [BST]
  • ------ Structures ------
  • Array
  • String
  • Heap
  • Stack
  • Queue
  • Tree
  • Linked List
  • Hash Table
  • Bit Manipulation
  • Two Pointers
  • Math
  • Decorator
  • -------- Tutors --------
  • Basic
  • Intermediate
  • Advanced
  • Interview
  • ----- Applications -----
  • Spark
  • Tkinter
  • Turtle
  • Games
  • Web
  • -------- About ---------
  • About
  • History

Previous topic

Find files and skip directories

Next topic

Find the max of three numbers

Quick search

Function¶

How To: Basic::Function

  • Find the max of three numbers
  • Sum all the numbers in a list
  • Multiply all the numbers in a list
  • Reverse a string
  • Calculate the factorial of a number
  • Check whether a number is in a given range
  • Accept a string and calculate the number of upper and lower case letters
  • Take a List and returns a new List with unique elements
  • Check the number is prime or not
  • Print the even numbers from a given list
  • Check whether a number is perfect or not
  • Checks whether a passed string is palindrome or not
  • Print the first N rows of Pascal’s triangle
  • Check whether a string is a pangram or not
  • Accept a hyphen-separated words and sort them alphabetically
  • Create and print a List of square of numbers between 1 and 20 (both included)
  • Make a chain of function decorators (bold, italic, underline etc.)
  • Execute a string containing python code
  • Access a function inside a function
  • Detect the number of local variables declared in a function

Navigation

  • index
  • next |
  • previous |
  • PyHowTo: 1798 tasks and 2296 solutions »
  • Basic »
© Copyright 2020, Sergiy Zaytsev, szaytsev@hotmail.com. Created using Sphinx 2.3.0.