In this post, We will see how to write a python program for finding Sum of cubes of first n natural numbers in different ways. Example: Input: N = 2 Output: 1 * 1 * 1 + 2 * 2 *2 => 9 OR 13 + 2 3 => 9 Input: N = 3 Output: […]
Month: March 2021
Python – Program for Sum of squares of first n natural numbers
In this post, We will see how to write a python program for finding Sum of squares of first n natural numbers in different ways. Example: Input: N = 2 Output: 1 * 1 + 2 * 2 => 5 OR 12 + 2 2 => 5 Input: N = 3 Output: 1 * 1 […]
Python – Program for printing Prime Numbers from the List of Numbers
In this post, We will see how to write a python program for finding prime numbers from the list of numbers in different ways. Click on this link : Prime Number Example: Input: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Output: Prime Number : -> 2, 3, 5, 7, Input: [15, […]
Python | Simple Notepd Gui Application using tkinter
In this post, we will see how to make a notepad Gui application using tkinter module of Python. Basic idea : when you open an already existing file then you have to show all the contents of the file to the text editor..ie. you have to take all contents of the file and insert them […]