Gauss summation python problems

Gauss summation python problems

Post by LeadPipe on Fri Feb 19, 2021 12:00 am
([msg=108923]see Gauss summation python problems[/msg])

Please help, my simple python script for calculating the gauss sum refuses to work. Here it is:

x=[1,100]

print(x[0]+x[1]*(x[1]/2))

any answers or fixes for a confused python user?

by the way should this have gone in another forum?

Also it was designed to be adaptable so someone can read it and know where to put their number to be calcualted
LeadPipe
New User
New User
 
Posts: 3
Joined: Mon Feb 15, 2021 1:32 pm
Blog: View Blog (0)


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests