Quiz
Python Functions Quiz
…functions , functions with parameters , return statement basics and variable arguments with *args . After this one, try the Python Sets Quiz or the Python Basics Quiz .
Showing 11–20 of 35
Quiz
…functions , functions with parameters , return statement basics and variable arguments with *args . After this one, try the Python Sets Quiz or the Python Basics Quiz .
Quiz
…of 15) to pass Each topic has a runnable example: for loop basics , for loop with enumerate and range and break and continue . For loops inside loops, read nested loops in Python . After this one, try…
Quiz
…more (11 of 15) to pass Each type has a runnable example: basic data types , lists , tuples , dictionaries and sets . After this one, try the Python Variables Quiz or the Python Basics Quiz . Which of…
Article Python Fundamentals
…observing. The print() function helps you display this basic yet crucial information on your computer's console. Your first message to Mission Control Let's start with the basics. Here's how to send…
Quiz
…pass Each topic has a runnable example: return statement basics , returning multiple values , returning a dictionary or a list and early exit from a function . After this one, try the Python Functions…
Quiz
…15) to pass Each topic has a runnable example: while loop basics and break and continue . After this one, try the Python For Loop Quiz or the Python If/Else Quiz . What does this code print? What does…
Quiz
…Python If/Else for Beginners first, or run the examples: basic if statement , if-else , if-elif-else and logical operators and, or, not . After this one, try the Python Math Operations Quiz or the…
Quiz
…the conversions in runnable examples: type conversion , basic data types and dynamic typing . After this one, try the Python Data Types Quiz or the Python Variables Quiz .
Article Python Fundamentals
…= 7 _mission_duration = 180 # days Python's Basic Data Types Numbers Integers (int) Whole numbers without decimal points, perfect for counting objects: number_of_planets = 8 satellite_count = 3400…
Example
Variables store data in your program. Learning to create and name variables in Python.