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
Name at least 1 use for python.
A variable created inside a function belongs to the _______
Local scope
Finish the sentence:
Python has no ____ for declaring a variable.
command
Name at least 3 systems in which python is available:
windows, linux, mac, raspberry pi, e.t.c.
Comments start with the...
(Options)
a)* b)/ c)X d)#
Which statement is used to stop a loop?
A)Exit b)Break C)Stop D)Return
A)Exit
A variable created in the main body of the Python code is a global variable and belongs to the _____
Global Scope
You need to declared a particular "type" with variables. (T or F)
Who created Python?
Guido Van Rossum.
Comments can be placed at the end of a line, and Python will ignore the...
Rest of the line
Insert the Missing Part on the next code
____("Hello World")
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.
What is a variable?
Variables are containers for storing data values.
When was Python created? (Year)
1991
What does a comment does not have?
Which operator is used to multiply numbers?
(Options)
a)* b)/ c)X d)#
*
It is the keywoard if you want to make a change to a global variable inside a function.
Global
If you want to specify the data type of a variable, this can be done with ____
casting
What is the newest Python? (Version)
Python 3.10.4. or Python 3
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.
In Python, 'Hello', is the same as "Hello" (T or F)
True
What is Scope in Python?
A scope is a block of code where an object in Python remains relevant.
A variable is created the moment you first assign a value to it.