Physics, asked by bhupigohil1153, 7 months ago

Which of the following is a valid statement in python? (A) abc = 1,000,000 (B) a b c = 1000 2000 3000 (C) a,b,c = 1000, 2000, 3000 (D) a_b_c = 1,000,00

Answers

Answered by genesistb213
1

Answer:

actually all because it does not give emphasize on variables but except (b) no sepratir there

Explanation:

hope it helps :)

Answered by dreamrob
2

(A) abc = 1,000,000

This is a valid statement.

abc is a variable name.

When we will execute it then it will form a tuple (1,0,0).

(B) a b c = 1000 2000 3000

This is an invalid statement.

It will give error during the time of compilation.

(C) a,b,c = 1000, 2000, 3000

This is a valid statement.

This is the case of multiple variable declaration.

In this case a = 1000 , b = 2000 , c = 3000

a_b_c = 1,000,00

This is a valid statement

a_b_c is a variable name.

When we will execute it then it will form a tuple (1,0,0).

Attachments:
Similar questions