Improved Code and removed Warnings (#483)

This commit is contained in:
Parth Shandilya
2018-10-19 14:00:31 +05:30
committed by GitHub
parent 07451a6ca4
commit 5d1f72604d
36 changed files with 67 additions and 67 deletions

View File

@@ -9,7 +9,7 @@ Hence the difference between the sum of the squares of the first ten natural num
Find the difference between the sum of the squares of the first N natural numbers and the square of the sum.
'''
from __future__ import print_function
n = int(input())
n = int(raw_input())
suma = n*(n+1)/2
suma **= 2
sumb = n*(n+1)*(2*n+1)/6