+ 6
How to print my result in dictionary format
i have calculated percentage of student using some code and i want to print in dictionary format like {'yash':59, 'ram':68,....} please tell me the way to do that
6 Respostas
+ 6
Hereâs a possible option, yash gupta :
ââââââââââââ
dic = {}
for i in range(len(names)):
dic[names] = some_value
print(dic)
ââââââââââââ
Hope this helps đ
+ 1
X = dict()
print(str(X))
+ 1
Dictionaries
đđđđđđđ
https://code.sololearn.com/cuWT75qxQa4o/?ref=app
0
Hy
0
Hmmmm