Computer Science, asked by koulsanvi2008, 2 months ago

What will be the output of the given Python statement : print(5>7)
1 point
7
True
5
False

Answers

Answered by Anonymous
43

Predicting output - Python

Before we predict the output of the given Program, let's first know about that what is Python and what is Programming.

Python

Python is a powerful high-level, object-oriented programming language. It was created by Guido van Rossum. It was launched on 1991. It can connect to the database system, it can also read and modify files. Python works on different platforms like, Raspberry Pi, Linux, Mac, Windows and many more platforms.

Programming

Programming means to create or develop a software which is called a program that contains the instructions to tell a computer what to do.

\rule{80mm}{1pt}%

The Output

The output of the given python program will be as follows:

>>> False

Because we know 5 is smaller than 7, and here it is given that, 5 is greater than 7, such that, 5>7. So ofcourse the output of given program will be false.

Now let's know some important Python arithmetic operators.

Here are some important Python arithmetic operators are given:

\boxed{\begin{array}{c|c|c}\bf{\underline{ \: \: Operator \: \: }}&\bf{\underline{ \: \: N{a}me \: \: }} & \bf{\underline{ \: \: Example \: \: }} \\ \\+ & \tt{Addition} & \tt{x + y} \\ \\ - & \tt{Subtraction} & \tt{x - y} \\ \\ * & \tt{Multiplication} & \tt{x * y} \\ \\ / & \tt{Division} & \tt{x / y} \\ \\ \% & \tt{Modulus} & \tt{x \% y} \\ \\ * * & \tt{Exponentiation} & \tt{x * * y} \\ \\ // & \tt{Floor \; division} & \tt{x // y} \\ \\\end{array}}

Answered by rohithkrhoypuc1
4

Answer:

Python:-

It is a interpreted high level general purpose programming language. python supports modules and packages .

Output:-

The given statement is false .

We already know that 5 is not greater than 7 but here 5 is greater than 7 .

So this statement is wrong .

Similar questions