Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Expression statements...............!

12 like 0 dislike
Hello,

 Can any one help me,which form I can use for  Simple Statements?Please give your answer as early as possible.............
asked 2 years ago by biswaskeran (70,430 points)

1 Answer

0 like 0 dislike
Hey,
       Expression statements are used (mostly interactively) to compute and write a value, or (usually) to call a procedure (a function that returns no meaningful result; in Python, procedures return the value None). Other uses of expression statements are allowed and occasionally useful. The syntax for an expression statement is:

expression_stmt ::=  expression_list

An expression statement evaluates the expression list (which may be a single expression).

In interactive mode, if the value is not None, it is converted to a string using the built-in repr() function and the resulting string is written to standard output (see section The print statement) on a line by itself. (Expression statements yielding None are not written, so that procedure calls do not cause any output.)
answered 2 years ago by allian (14,180 points)

Related questions

11 like 0 dislike
1 answer
11 like 0 dislike
1 answer
9 like 0 dislike
1 answer
asked 2 years ago by lily (17,510 points)
10 like 0 dislike
1 answer
asked 2 years ago by biswaskeran (70,430 points)
12 like 0 dislike
2 answers
asked 2 years ago by biswaskeran (70,430 points)