Contact
Privacy
Coding Development Art
  • Home
  • Latest
  • Oldest
  • Popular
  • Random
  • Home»
  • Categrories»
  • Programming Languages»
  • Python»

Write a program to print the sum of squares of first n natural numbers - Python

Categories:
Python
Viewed: 3 - Published at: a few seconds ago

[ Write a program to print the sum of squares of first n natural numbers ]

n = 21
sum_n = 0
for i in range(1, n+1):
    sum_n += i**2
print(sum_n)

Related Posts:

How to Make a Calculator App for Android
How to Make a Calculator App for Android
Android
How Content Management Systems Dominate an Industry (And Why We Love Them)
How Content Management Systems Dominate an Industry (And Why We Love Them)
Sponsored
Passing INT in bundle and placing it as drawable?
Passing INT in bundle and placing it as drawable?
Android
How to Display Images sequentially from a folder using HTML-Javascript-CSS?
How to Display Images sequentially from a folder using HTML-Javascript-CSS?
HTML
Good examples of MapServer / OpenLayers
Good examples of MapServer / OpenLayers
Certain characters not being read fom file - Python
Certain characters not being read fom file - Python
Python

You may also like:

Reversing a List in Java - In-Place and Out-Of-Place
Reversing a List in Java - In-Place and Out-Of-Place
Java
JavaScript Captcha Example
JavaScript Captcha Example
JavaScript
Java Flow Control: for and for-each Loops
Java Flow Control: for and for-each Loops
Java
Java StringBuffer Class
Java StringBuffer Class
Java
PL/SQL Operators
PL/SQL Operators
PL/SQL
Using Sequelize.js and SQLite in an Express.js App
Using Sequelize.js and SQLite in an Express.js App
Nodejs
Categories
  • Blog
    • Career
    • Computer
    • Downloads
    • Internet
    • Linux
    • News
    • Review
    • Security
    • Technology
  • Database
    • MySql
    • Oracle Database
    • SQL Server
    • SQLite
    • mongodb
  • Dev
    • Algorithm
    • Android
    • Batch File Programming
    • Books
    • Competitive Programming
    • Computer Networks
    • Data Structure
    • Design
    • Development
    • Flutter
    • Game
    • Git
    • Interview Questions
    • JDBC
    • Machine Learning
    • Mobile
    • Operating System
    • Programming
    • Projects
    • Sponsored
    • Webservice
    • iOS
  • Framework
    • .NET
    • Angular
    • Django
    • MVC
    • Nodejs
    • React
  • Programming Languages
    • ASP.NET
    • C Programs
    • C#
    • C++ Programs
    • CSS
    • HTML
    • JSP
    • Java
    • JavaScript
    • PHP
    • PL/SQL
    • Python
    • SQL
    • Swift
    • VB.NET
  • Tools
    • privacy-policy-generator
    • Mac Vendors
    • Ports Numbers
    • Wifi Routers Passwords

Site all the data, are collected from Internet, belongs to original author, please do not used for commercial purposes !

Coding Development Art
  https://www.codevelop.art
 
  contact@codevelop.art

Posts

  • Home
  • Latest
  • Oldest
  • Popular
  • Random

Follow Us

© 2018 codevelop.art - Coding Develop Art - programming and development tutorials blog - Learn all Program languages | codevelop.art.
All Rights Reserved.
  • Contact
  • Privacy
  • Terms of service
  • Copyright
  • Disclaimer