0

I need python code

I want a code that when I input a value the program give me a list of choices and after I choose it the program apply the rule of each choice. for example a program ask for a value and convert it to meter. when I input 44, the program must ask me (meter, centimetre or millimetre) when I choose Centimetre it must convert my input to meter by diving it on 100 . and so on

2nd Jun 2017, 9:43 AM
HASSAN AIT BIHI
2 Réponses
0
What is the base unit you want to convert? That is a must know to make it work... I mean are you wanting to convert feet to centimeter, meters, or kilometers? Or what.. depending on the base unit the math required will be very different.
2nd Jun 2017, 10:00 AM
Spock
Spock - avatar
0
this is just an example and I will try to edit it and practice
4th Jun 2017, 11:23 AM
HASSAN AIT BIHI