Welcome back, !
Track your progress and access your registered courses.
Login to access your student portal
Enter the unique Certificate ID to verify its authenticity.
Track your progress and access your registered courses.
Select a course to continue learning.
Learn Python basics through hands-on interactive examples and code execution right in your browser.
Here you can download your earned certificates and leave feedback for the courses.
Your feedback helps us improve our courses!
Preparing Python Environment...
This course is designed to teach you the fundamentals of Python in a hands-on, interactive way.
You will go through several chapters, each containing:
Your progress and score will be tracked at the top. Let's get started!
Python is a simple, powerful programming language. Its main command for displaying output is print().
You can also add comments to your code using the hash symbol (#). Comments are notes for humans that the computer ignores.
What is the command to display text on the screen?
Which symbol starts a comment in Python?
Variables store data. Python has types like integers (int), floats (float), strings (str), and Booleans (bool). No explicit declaration is neededβjust assign a value. Use type() to check a variable's type.
Which of these is NOT a standard Python data type?
What will type(10) return?
Strings are sequences of characters for storing text. You can join them (concatenate) and use methods for formatting, like changing case. Strings are immutable, meaning they canβt be changed; operations on them create new strings.
Select the method to convert a string to uppercase.
message = "hello"
print(message.)
Which operator joins two strings?
"Hello" "World"
Operators perform operations. Python has arithmetic (`+`, `-`, `*`, `/`), comparison (`==`, `!=`, `>`, `<`), and logical (`and`, `or`, `not`) operators. They help perform math, compare values, and build complex conditions to control program flow.
Fill in the blank to check if a is NOT equal to b.
a = 5
b = 10
print(a b)
What is the output of 10 ** 2?
Conditionals let programs make decisions. if checks if a condition is true. elif tests more conditions. else runs if nothing before it was true. This helps your program behave differently based on various situations.
Fill in the blank to check if the temperature is warm.
temperature = 25
temperature > 20:
print("It's warm.")
Fill in the blank to classify a score of 85.
score = 85
if score >= 90:
print("Grade A")
score >= 80:
print("Grade B")
else:
print("Grade C")
Loops repeat actions. `for` loops iterate over a sequence (like a list or range). `while` loops run as long as a condition is true. `break` exits a loop, and `continue` skips the current iteration. Loops are essential for automation.
Complete the `for` loop to print numbers from 0 to 4.
i in range(5):
print(i)
Fill in the blank to make the `while` loop stop after 3 iterations.
count = 0
while count < :
print("Looping...")
count += 1
Lists and tuples store multiple items. Lists are mutable (changeable), created with `[]`. Tuples are immutable (unchangeable), created with `()`. Both can hold mixed data types and be indexed. Use lists for flexible collections, and tuples for fixed data.
Fill in the blank to add "orange" to the list.
fruits = ["apple", "banana"]
fruits.("orange")
print(fruits)
How do you access the first item in a list?
fruits = ["apple", "banana"]
print(fruits[])
Functions group reusable code into named blocks using `def`. They can take arguments and return results with `return`. Functions keep code organized, readable, and prevent repetition (DRY - Don't Repeat Yourself).
Use the `def` keyword to define a function.
say_hello():
print("Hello!")
say_hello()
Complete the function to return the sum.
def sum_two(x, y):
x + y
print(sum_two(10, 20))
Write a Python program to determine a grade based on marks.
Your code should:
The correct output for `marks = 85` should be "Grade B".
Congratulations! Enter your name below to generate your certificate.
This certifies that
has successfully completed the course conducted by Robo Mentors, demonstrating dedication, consistent effort, and a strong understanding of the essential concepts and practical applications covered throughout the program.
Verify completion at
ID:
Issued
CEO Name
for