Write the output
#!/usr/bin/python
var =100
if(var==100):
print "Value of expression is 100"
print "Good bye!
Answers
Answered by
1
The output would like is
Attachments:
Answered by
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
Business Studies,
5 months ago
Computer Science,
5 months ago
Chemistry,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Chemistry,
1 year ago