+ 2

Create a variable containing the string 93.7 and another. Convert both to a decimal number. Please tell mr how. Im stuck 😩

Struggling

8th Mar 2019, 11:20 AM
Peter
Peter - avatar
6 ответов
+ 9
Peter in what language?
8th Mar 2019, 11:39 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 9
Peter from decimal import * a=['93.7','100.7'] Decimal(a[0]) Decimal(a[1])
8th Mar 2019, 11:44 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
8th Mar 2019, 11:56 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 2
Thanks bro!
8th Mar 2019, 11:46 AM
Peter
Peter - avatar
+ 1
In python. Could you help?
8th Mar 2019, 11:42 AM
Peter
Peter - avatar
+ 1
That's great! Thanks a lot!
8th Mar 2019, 11:57 AM
Peter
Peter - avatar