Logo Passei Direto
Buscar
Material

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

Important Python Functions 1. print() - Outputs text or variables to the console. .input() - Accepts user input as a string. 3. len() - Returns the number of items in an iterable string. 4. type() - Returns the type of an object. 5.str() - Converts an object to a string. 6.int() - Converts a value to an integer. 7. float() - Converts a value to a floating-point number. 8. list() - Converts an iterable into a list. 9. dict() - Creates a dictionary from key-value pairs. 10. set() - Creates a set to store unique values. 11. range() - Generates a sequence of numbers. 12. .abs() - Returns the absolute value of a number. 13. round() - Rounds a number to a specified number of decimal. 14. min() - Returns the smallest item in an iterable. 15. max() - Returns the largest item in an iterable. 16. sum() - Returns the sum of a numeric iterable. 17.sorted() - Returns a sorted list from an iterable. 18.zip() - Combines two or more iterables element-wise into tuples. 19. map() - Applies a function to each item in an iterable. 20. filter() - Filters items in an iterable based on a condition.

Mais conteúdos dessa disciplina