num = 5
print(eval(num*(num+1)/2))
why is it is showing an error.
num = 5
print(eval(num*(num+1)/2)) why is it is showing an error.
what does eval actually do and how to use it in this sum of n numbers code.
i am begginer please help me understand
New contributor
SAI 007 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.