English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A melhor maneira de aprender Python é através da prática de exemplos. Esta página contém exemplos de conceitos básicos do Python. Recomenda-se consultar as referências destes exemplos e tentá-los pessoalmente. Todos os programas desta página foram testados e devem funcionar em todas as plataformas.
Python program to check if a number is positive, negative or 0
Python program to find the largest number among three digits
Python program to convert decimal to binary, octal and hexadecimal
Python program to find the greatest common divisor (HCF) or greatest common divisor (GCD)
Python program to display the Fibonacci sequence using recursion
Python program to find the sum of natural numbers using recursion
Python program to find the factorial of a number using recursion