Python
Comments
Python Codes
Scope
Variables
100

It can be used for web and software development, mathematics, system scrypting, etc. It also has a simple syntax similar to the English language.

Python

100

Name at least 1 use for python.

  • web development (server-side),
  • software development,
  • mathematics,
  • system scripting.
100

What does the output should read with 

C:\Users\Your Name>python helloworld.py 

Hello, World!


100

A variable created inside a function belongs to the _______

Local scope

100

Finish the sentence:

Python has no ____ for declaring a variable.

command

200

Name at least 3 systems in which python is available:

windows, linux, mac, raspberry pi, e.t.c.

200

Comments start with the...

(Options) 

a)*  b)/  c)X  d)#

d)#
200

Which statement is used to stop a loop? 

A)Exit b)Break C)Stop D)Return

A)Exit 

200

A variable created in the main body of the Python code is a global variable and belongs to the _____


Global Scope

200

You need to declared a particular "type" with variables. (T or F)

False
300

Who created Python?

Guido Van Rossum.

300

Comments can be placed at the end of a line, and Python will ignore the...

Rest of the line

300

Insert the Missing Part on the next code

____("Hello World")

Print


300

If you operate with the same variable name inside and outside of a function, Python will treat them as _____

a)Two b)three

separate variables.

a) Two.

300

What is a variable?

Variables are containers for storing data values.

400

When was Python created? (Year)

1991

400

What does a comment does not have?

A text that explains the code.
400

Which operator is used to multiply numbers?

(Options) 

a)*  b)/  c)X  d)#

*

400

It is the keywoard if you want to make a change to a global variable inside a function. 

Global

400

If you want to specify the data type of a variable, this can be done with ____

casting

500

What is the newest Python? (Version)

 Python 3.10.4. or Python 3

500

What can comments be used on Python?  (name 1 option)

Comments can be used to explain Python code.

Comments can be used to make the code more readable.

Comments can be used to prevent execution when testing code.

500

In Python, 'Hello', is the same as "Hello" (T or F)

True

500

What is Scope in Python?

A scope is a block of code where an object in Python remains relevant.

500
When is a variable created?

A variable is created the moment you first assign a value to it.

M
e
n
u