Computer Science, asked by riyasinha4979, 3 months ago

the statement 10%3 will evaluate to​

Answers

Answered by vanshika1886
0

Answer:

Values and data types

A value is one of the fundamental things — like a letter or a number — that a program manipulates. The values we have seen so far are 2 (the result when we added 1 + 1), and "Hello, World!".

These values belong to different data types: 2 is an integer, and "Hello, World!" is a string, so-called because it contains a string of letters. You (and the interpreter) can identify strings because they are enclosed in quotation marks.

The print statement also works for integers.

>>> print 4

4

If you are not sure what type a value has, the interpreter can tell you.

>>> type("Hello, World!")

<type 'str'>

>>> type(17)

<type 'int'>

Not surprisingly, strings belong to the type str and integers belong to the type int. Less obviously, numbers with a decimal point belong to a type called float, because these numbers are represented in a format called floating-point.

>>> type(3.2)

<type 'float'>

What about values like "17" and "3.2"? They look like numbers, but they are in quotation marks like strings.

>>> type("17")

<type 'str'>

>>> type("3.2")

<type 'str'>

They’re strings.

Strings in Python can be enclosed in either single quotes (‘) or double quotes (”):

>>> type('This is a string.')

<type 'str'>

>>> type("And so is this.")

<type 'str'>

Answered by harshvirsing55
9

Answer:

The statement 10%3 will evaluate to​  1.

Explaination:-

This Operator divides the two operands and gives the remainder resulting.

Similar questions