Computer Science, asked by arsalaanzeba786, 5 months ago

let us see who can give the correct answers of all thwe questions above​

Attachments:

Answers

Answered by sam28081
2

Answer:

Answer of question 3

What is the difference b/w integer and floating point numbers?

Ans : Floating point numbers are different from integer numbers in that they contain fractional parts. Even if the number to the right of the decimal point is 0 (or decimal comma, if your locale uses commas instead of periods), it's still a fractional part of the number. Floating point numbers can be positive or negative.

Answer of question 4.

How can we run a program in python?

Ans : To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this:

$ python3 hello.py Hello World! If everything works okay, after you press Enter , you'll see the phrase Hello World!

Answer of question 5

List the Arithmetic operations in Python.

Ans :

1. Operation = +

Name = Addition

example = x + y

2. Operation = -

Name = Subtraction

example = x - y

3. operation = *

Name = Multiplication

example = x * y

4. Operation = /

Name = Division

example = x/y

5. operation = %

Name = Modulus

example = x% y

etc.

Similar questions