Page 103 - Gujrati Play V2.0 Class 7 Flipbook
P. 103
WÃkhkuõík «kuøkúk{ hLk fhðkÚke, ykÃkýLku Lke[u {wsçkLkwt ykWxÃkwx {¤u Au:
Output
Enter the first number: 45
Enter the second number: 65
Second number is greater than first number
Enter the first number: 38
Enter the second number: 22
First number is greater than second number
«kuøkúk{ 4: çku ðifÂÕÃkf MktËuþkyku{ktÚke yuf «ËŠþík fhðk {kxu.
Program4.py
File Edit Format Run Options Window Help
#Program to display one of two alternate massages
passing_score = 60
my_score = int(input('Enter a score: '))
if(my_score >= passing_score):
print('congratulations on passing the exam')
else:
print('You failed, try harder next time')
WÃkhkuõík «kuøkúk{ hLk fhðkÚke, ykÃkýLku Lke[u {wsçkLkwt ykWxÃkwx {¤u Au:
Output
Enter a score: 78
Congratulations on passing the exam
Enter a score: 45
You failed, try harder next time
Tech Funda
Lke[uLkk fkuz{kt ¼q÷ þkuÄku yLku fkuz VheÚke ÷¾ku:
if(age > 18)
print(‘You are eligible to vote’)
else:
print(‘Not eligible to vote’)
ÃkkÞÚkkuLk{kt fLzeþLk÷ Mxux{uLx 101

