1.

Which command is used to enter values, number or text during the execution of a program?​

Answer»

Answer:

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(17)



Discussion

No Comment Found