Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 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