-
-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Closed
Description
-
Is here right way that I can ask a question?
- weight = int(input('Weight: '))
- unit = input('(L)bs or (K)g: ')
- if unit.upper() == 'L':
-
converted = weight * 0.45 -
print(f"You are {converted} kilos") - elif unit.upper() == 'K':
-
converted = weight / 0.45 -
print(f"You are {converted} pounds") - else:
-
print("Please Enter the letters l or k") - #I wanna add more optional letters ( LBS, KG ) on 4, 7 lines
- and when I put (or ,) by the next of 'L' and 'K'
- it doesn't work properly.
Metadata
Metadata
Assignees
Labels
No labels