PYTHON BASICS
MORE PYTHON
PYTHON QUESTIONS
F1
SOCCER
100

What is PYTHON? 

Python is a popular programming language. 

100

 What is PYTHONPATH?

is an environment variable which is used when a module is imported. Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories.

100

What are Python packages?

Python packages are namespaces containing multiple modules.

100

Who is Sergio Pérez?  

A Mexican f1 driver

100

Who is the top scorer in the champions league?

.Cristiano Ronaldo

.Leo Messi

.Neymar Jr

.Pele

Cristiano Ronaldo

200

What platforms can Python be used on?

Mention 3

Windows, Mac, Linux, Raspberry Pi, etc).

200

 How do you write comments in python?

Comments in Python start with a # character. However, alternatively at times, commenting is done using docstrings(strings enclosed within triple quotes).


200

What are docstrings in Python?

Docstrings are not actually comments, but, they are documentation strings. These docstrings are within triple quotes.

200

How old is Checo Perez? 

32 

200

Who has the most goals in the history of football?

.Pele

.Maradona

.Messi

.Cristiano Ronaldo

Cristiano Ronaldo

300

PYTHON it is use for: 

Mention 3

  • web development (server-side)
  • software development
  • mathematics
  • system scripting
300

What type of language is python?

it is considered as a general-purpose programming language.

300

What are Python namespaces?

A namespace in python refers to the name which is assigned to each object in python. The objects are variables and functions. As each object is created, its name along with space(the address of the outer function in which the object is), gets created.

300

Who are in the red bull team? 

Max Verstappen y Sergio Pérez 

300

It is the team with the most champions league

Real Madrid

400

In what year was created PYTHON? 

1991

400

Python identation refers a? 

Spaces at the beginning of a code line

400

What are local variable and global variables in Python? 

Global Variables:Variables declared outside a function or in global space are called global variables.These variables can be accessed by any function in the program.

Local Variables:Any variable declared inside a function is known as a local variable.This variable is present in the local space and not in the global space.

400

How long is a race? 

The race is measured by the distance that must be the least number of laps that exceeds 305 km. However, F1 rules do not allow it to last more than two hours for the health of the drivers.

400

Why they call hugo sanchez the quinta-pichichi? 

Because He win 5 times top scorer in Spanish league

500

Who created PYTHON? 

Guido van Rossum

500

What are the generators in python?

 Functions that return an iterable set of items are called generators.

500

What are python modules? Name some commonly used built-in modules in Python?

Python modules are files containing Python code. This code can either be functions classes or variables. A Python module is a .py file containing executable code.

Some of the commonly used built-in modules are:

  • os
  • sys
  • math
  • random
  • data time
  • JSON
500

Mention 3 teams of F1

Mercedes

Red Bull

Mclaren

Ferrari

500

Who won the 1986 world cup? 

Argentina