Python Assignment -5
Python Assignment -5
Write a program to accept a month number and display month name. e.g. if entered number is 1 the display January, if 2 then display February
and so on. In case any other number is entered then display Invalid Month Number.
Code:
if A==1:
elif A==2:
elif A==3:
elif A==4:
elif A==5:
elif A==6:
elif A==7:
elif A==8:
elif A==9:
elif A==10:
elif A==11:
elif A==12:
else:
if A==1:
elif A==2:
elif A==3:
elif A==4:
elif A==5:
else:
Code:
if A==11:
elif A==12:
elif A==14:
elif A==15:
elif A==16:
elif A==17:
elif A==18:
elif A==19:
elif A==20:
else:
Code:
if A>B>C:
elif B>C>A:
elif B>A>C:
elif C>B>A:
elif C>A>B:
Code:
if A<B<C:
elif B<C<A:
elif B<A<C:
elif C<B<A:
elif C<A<B:
Code:
A=int(input("Enter the first number"))
if A<B<C:
elif A<C<B:
elif B<C<A:
elif B<A<C:
elif C<B<A:
elif C<A<B: