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.

  • All
  • Python
  • C
  • Java
  • CPP
  • SQL
  • JS
  • HTML
  • CSS
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi Shifa,

\n means new line.

  • If you put it before the text, it moves to a new line first, then prints the text.

    cout << "\nHello";
    
  • If you put it after the text, it prints the text first, then moves to the next line.

    cout << "Hello\n";
    

So the difference is whether the line break happens before the message or after it.

If you have more questions, I am here to help 😊

C++
This question was asked as part of the Learn C++ Basics course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi Cesar,

Self-contained content means a piece of content that can stand on its own as one complete unit.

In HTML, <figure> is used for things like an image, diagram, or code snippet plus its caption, because they belong together.

Example:

<figure>
  <img src="tiger.png" alt="Tiger">
  <figcaption>A tiger</figcaption>
</figure>

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi SELVARATHINAM,

Headings are like a content outline. <h2> is a main section, and <h3>, <h4>, <h5> are smaller sub-sections under it.

If you jump from <h2> to <h5>, it can confuse screen readers and make the page structure harder to understand. It is better to go in order, like <h2> then <h3> for the next level.

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.
Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi Onyelusi,

The <head> is for page information the browser needs, not for content the user reads on the page. Things in <head> include the page title, meta info, links to CSS, and scripts.

The content that shows on the webpage goes inside the <body>.

Example:

<head>
  <title>My Page</title>
</head>

<body>
  <h1>This will show on the page</h1>
</body>

<title> shows in the browser tab, but the <h1> shows on the actual page.

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.
2
last year
2023country asked
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi Ing RAMIREZ,

Metadata means data about data. In a webpage, metadata is information about the page, like the title, description, author, or character set.

In HTML, metadata usually goes inside the <head> and it helps the browser and search engines, even though it does not show as normal page text.

Example:

<head>
  <meta charset="UTF-8">
  <meta name="description" content="Learning HTML basics">
</head>

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi Gangadhari,

In C, you should use int main() because main is supposed to return an integer status code to the operating system.

Example:

int main() {
    return 0;
}

void main() is not standard C, so it is best to avoid it.

If you have more questions, I am here to help 😊

C
This question was asked as part of the Learn C Programming course.
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi Jogblackhole,

In Python, () is mainly used to call a function and pass values into it.

Example:

print("Hello")

Here, print() is the function, and the text inside () is what it should print.

() is also used to group math so Python does that part first:

(2 + 3) * 4

If you have more questions, I am here to help 😊

Python
This question was asked as part of the Getting started with Python course.
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi temidayo,

Wrap just that part with bold and italic tags. Example:

Thank you for visiting <b><i>our website</i></b>!

If you are doing it with JavaScript, use innerHTML so the tags work:

paragraph.innerHTML = 'Thank you for visiting <b><i>our website</i></b>!';

If you have more questions, I am here to help 😊

This question was asked as part of the JavaScript in Browser course.
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi Rashina,

In Python, you can check this using isinstance():

value = "Hello"

if isinstance(value, str):
    print("It is a string")
else:
    print("It is not a string")

Just replace value with the variable you want to test.

If you have more questions, I am here to help 😊

Python
This question was asked as part of the Number Guessing Game course.
Sarthak Baral
Expert
last year
Sarthak Baral answered

Hi Nafees,

Start with the basics and move step by step, practicing each topic with small programs.

A simple order to follow is:

  • Variables, numbers, strings

  • If else, loops

  • Functions

  • Lists, tuples, sets, dictionaries

  • File handling

  • Errors and exceptions

  • OOP (classes and objects)

  • Small projects to practice

The key is to write code every day, even 20 minutes, and build tiny projects like a calculator, quiz, or to-do list.

If you have more questions, I am here to help 😊

Python
This question was asked as part of the Getting started with Python course.