Ask Programiz - Human Support for Coding Beginners
Explore questions from fellow beginners answered by our human experts. Have some doubts about coding fundamentals? Enroll in our course and get personalized help right within your lessons.

Whitespaces are just empty spaces in your text.
For example:
text = " Hello "
This has extra spaces before and after Hello.
Those extra spaces are called whitespaces.
We usually remove them to make the text look clean.

So when you see something like , that little / just means the tag is self-closing — it doesn’t need an end tag like .
But guess what? Starting with HTML5, you don’t even need the / anymore. You can just write:
And it works the same! Super simple. 👍

Simply put,
Memory location refers to a specific spot in the computer’s memory where data is stored. Think of it as a unique address where your data lives while your program is running. Every variable in your program is stored in one of these memory locations.
Data type is about the kind of data that goes into a memory location. For example, if you’re storing a number, the data type could be an int (integer) or a float (decimal number). If you’re storing text, the data type would be char or string.
So, in simple terms: Memory location is where data lives, and data type is what kind of data it is.
It’s okay if it's not 100% clear right now. As you continue with the course, this concept will make more sense.
Let me know if you need help with anything else.

In programming, input simply means getting information from the user.
As you progress through the course, you'll learn how to take input in Python and use it in your programs.
Let me know if anything is unclear or if you'd like to explore this further.

Yes, console.log() in JavaScript is similar to print() in Python — both are used to display information to the console or terminal.

Since you already know how range() works, let’s look at an example to understand how the step argument works.
Consider this code:
print(list(range(1, 6)))Output
[1, 2, 3, 4, 5]Here, the list goes up by 1 each time by default.
Now let’s add 2 as the step:
print(list(range(1, 6, 2)))Output
[1, 3, 5]In this case, the list still starts at 1, but it jumps by 2 instead of 1.
So, the step argument simply controls how much the value increases by in each step.
Let me know if you need more clarification on this.

When you do range(1, 7), it gives you numbers starting from 1 up to but not including 7. So it stops at 6.
It’s not about indexing exactly — that’s just how range() works in Python. The second number is treated as the "stop point", and it’s excluded from the result.
Let me know if you need more explanation on this. I'm happy to help.

When performing arithmetic operations in Python, the result will be a floating-point number if you use the / operator for division. For example, 5 / 2 will give you 2.5.
If you're using operations like addition (+), subtraction (-), or multiplication (*), the result will be in floating-point only if any of the values involved are floating-point numbers. For example, 5 + 2.2 will give you 7.2.
If you use the // operator for integer division, like 5 // 2, the result will be an integer (in this case, 2).
This distinction helps you get the result you expect, depending on the type of operation and the numbers involved.

HTML tags are like labels that tell the browser what each part of a webpage is.
For example, if you want to show a heading, you use a heading tag like this:
Apples
The tag tells the browser that the text Apple is a heading and it should be big and bold.
Tags usually come in pairs: an opening tag like and a closing tag like . Whatever you put between them is the content.
Tags not visible on the page—just instructions for how to show things. Only the content is visible.
As you continue with the course, you'll learn plenty of tags, each with their own purpose.

The key thing to note is that lists, tuples, and dictionaries are simply different ways to store data. Which one you choose depends on what you need your program to do.
That said, here are the major differences between them:
List: An ordered collection that can be changed (mutable).
my_list = [1, 2, 3]
my_list[0] = 10 # You can change items
print(my_list) # Output: [10, 2, 3]Tuple: Also ordered, but cannot be changed (immutable).
my_tuple = (1, 2, 3)
# my_tuple[0] = 10 # This would cause an error
print(my_tuple) # Output: (1, 2, 3)Dictionary: Stores data as key-value pairs, and you access values using keys.
my_dict = {"name": "Ali", "age": 25}
print(my_dict["name"]) # Output: Ali
my_dict["age"] = 26 # You can update valuesSo, lists and tuples store values by position — but only lists can be changed. Dictionaries store data using keys, which makes them great when you want to label and quickly access your data.
Let me know if you need more clarification on this.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer
