Quiz
Python Basics Quiz
How well do you know the basics of Python? This free quiz has 20 short questions for beginners, from print() and f-strings to lists, dictionaries, loops and functions. Most of them show a few lines of…
Showing 1–10 of 35
Quiz
How well do you know the basics of Python? This free quiz has 20 short questions for beginners, from print() and f-strings to lists, dictionaries, loops and functions. Most of them show a few lines of…
Example
The print() function is the basic tool for displaying data in Python console.
Example
For loop iterates through sequence elements. Basic iteration over lists.
Example
Lists store multiple elements in a specific order. Basics of working with lists.
Example
Return statement returns a value from function. Function can perform calculations and give result.
Example
While loop executes as long as condition is true. Controlling iteration with condition.
Article Python Fundamentals
…this article, we'll explore how Python handles numbers and basic mathematical operations—essential knowledge for anyone interested in space science and programming. Don't let math anxiety stop you…
Example
Functions group code for reuse. Defining functions with def keyword.
Example
Variables store data in your program. Learning to create and name variables in Python.
Example
…subtraction, multiplication and division in Python. Basic arithmetic operations.