Skip to content

a = int(input("type your weight\n")) var = str(input("in it kg of gram \n")) if var == "kg"or "KG": var2 = a*1000 print("in gram it is",var2) else var == "gram"or"Gram""GRAM": var4 = a/1000 print("in kg it is",var4,"kg") #15

Unanswered
Samyaak asked this question in Q&A
Discussion options

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Samyaak
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants