Python programming

5 important questions on Python programming

What is print() in python?

This is a built in function that instructs the computer to display text on the screen.
  • print = ("Hello, World!")

What are comments in Python?

These are lines after a # , that are ignored by the interpreter during the execution of the program but can be used to enhance the readability of the code or can be used to prevent executing any specific parts of a code, while making changes or testing.

What ar indentations in Python?

Indentation is used to define blocks of code. All statements with the same level of indentation are considered part of the same block. Identation is achieved using 4 spaced or a tab per level of indentation.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What are strings in python?

Strings are used for representing textual data. A string is a sequence of characters enclosed in either single quotes or double quotes.

What are the main rules by using variables correctly in python?

  1. Variable name can only contain letters, digits and underscores (_).
  2. It cannot start with a digit.
  3. Variable names are case-sensitive (myVar en mylar are different).
  4. Avoid using Python keywords as variables names (if, else for).

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo