+ 2
Please how can I get to print values out in python, it keeps giving me value as key not my values...
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])
+ 5
Please make us a short sample, how you think it should look like. Thanks!
+ 5
Or
for value in data:
print(data[value])
+ 3
Consider this Code..
Your doubt will be solved..!!
https://code.sololearn.com/c4w0qSJAeRFg/?ref=app
+ 1
Thanks...noted