Example
Basic if Statement
Conditional if statement allows executing code only when condition is met.
Showing 11–20 of 35
Example
Conditional if statement allows executing code only when condition is met.
Example
Python recognizes different data types automatically. Learn int, float, str and bool.
Example
How to create text and join it in Python. Basics of working with strings.
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…
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…
Article Python Fundamentals
…tasks don't require advanced mathematics. Start with the basics, and learn more math only when you need it. Here's what you actually need: Basic arithmetic Simple algebra (understanding variables)…
Article Python Fundamentals
…of Python programming. We'll not only learn about the basics of this versatile language but also bring our code to life using interactive tools. Fasten your seatbelts for a journey that combines…
Challenge
…ERROR TANK-3 is empty INFO Tank check complete Leave the basicConfig() line as it is. The hidden tests switch it to DEBUG and expect your debug lines to come back. The fuel logger In a bigger program…
Example
Adding and removing elements from a set. Basic set operations.
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 .