Professional Documents
Culture Documents
Python Answers
Python Answers
Python Answers
Ask
the user to enter their weight in either pound or kg and thn convert it into
another unit.
Ans.
Ques. If name is less than 3 characters long Print Name must be at least 3
char Otherwise if it’s more than 50 chars long Print Name can be a max of
50 characters Otherwise Print name looks good
Ans:
l=len(s);
if l<3:
elif l>50:
else:
Ques. Price of a house is $1M. If buyer has good credit, they need to put
down 10% otherwise they need to put down 20%. print the down Payment.
(Use formatted string)
Ans:
p2=float((1000000*20)/100)
if ch=='G':
elif ch=='A':
else:
print('Wrong Input')