+ 2

Please how can I get to print values out in python, it keeps giving me value as key not my values...

https://code.sololearn.com/c9SJFIwh6088/?ref=app

1st May 2020, 10:39 AM
olatundun abdul-hamid
olatundun abdul-hamid - avatar
6 odpowiedzi
+ 7
# insha allah calculator def add (x, y): return x + y x = 5 y = 10 print (add(x,y)) #food ate data of sahur and iftar data = {'25th_sahur':"semovita",'25th_iftar':"oath"} print (data['25th_sahur']) print (data['25th_iftar']) print (data.keys()) print (data.values()) for i in data: print (i) for i in data: print (data[i])
1st May 2020, 10:52 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 5
Please make us a short sample, how you think it should look like. Thanks!
1st May 2020, 10:43 AM
Lothar
Lothar - avatar
+ 5
Or for value in data: print(data[value])
1st May 2020, 10:55 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Consider this Code.. Your doubt will be solved..!! https://code.sololearn.com/c4w0qSJAeRFg/?ref=app
1st May 2020, 10:58 AM
Eswar V
+ 1
Thanks...noted
1st May 2020, 12:09 PM
olatundun abdul-hamid
olatundun abdul-hamid - avatar