Computer Science, asked by Rohitkumar9483, 10 months ago

Write the output
#!/usr/bin/python
var =100
if(var==100):
print "Value of expression is 100"
print "Good bye!

Answers

Answered by Abhis506
1

The output would like is

Attachments:
Answered by letmeanswer12
6

The Output is

Value of expression is 100

Good bye!

Explanation:

In the code snippet,

  • var =100  #This assigns value of the variable var as 100
  • if(var==100):  #The condition is checked using if statement. Here the value of var is 100 as assigned initially. So the condition is True.
  • print "Value of expression is 100" # Since the condition is True this statement executed and give output as ' Value of expression is 100'
  • print "Good bye! # Will give output as 'Good bye!'

Output:

  • Value of expression is 100
  • Good bye!

Similar questions