Find square root of a number using sqrt() function
Hello everyone, Welcome back! Here we discuss a very simple python program which finds the square root of a given number using a module called Math and use one of its method sqrt(). In the …
All basic programs for people who started learning python programming language. Programs on different topics like operators, loops, decision making, numbers, strings, basic lists.
All the programs in this category are presented with a great explanation with screenshot of the executed output and source code is made available on GitHub platform.
Here all the topics are provided with some enough example programs, a few of them are
and many more such basic programs. Following are the programs listed in this category.
Hello everyone, Welcome back! Here we discuss a very simple python program which finds the square root of a given number using a module called Math and use one of its method sqrt(). In the …
Hello everyone, welcome back! Here we learn about a python program which finds the square root of a given number. We find the square-root of a number using exponential operations. Here I calculate the square-root …
Hello everyone, I am back to discuss a new python program. Here we learn how to sum all the elements in a list quite easily. We use a predefined function called sum() and apply it …
Hello people, here we discuss a simple python program that finds the biggest and smallest number out of given three numbers. Here we use python lists in this program. Here we add the 3 numbers …
Hello everybody, this is a Python program that finds out the smallest and largest number on the list. Here we use 2 predefined functions min() and max() which check for the smallest and largest number in a …
Hello people, here we discuss a simple python program which finds the biggest and smallest number out of given three numbers. Here we use concept of functions in this program. We use two functions biggest() …
Hello readers, welcome back, here is another simple python program which checks whether a number is an Armstrong number or not. Generally, a number is said to be an Armstrong number if an n -digit …
A simple python program which checks whether a number is a palindrome or not. Generally, a number is said to be a palindrome number if its reverse is same as the original number. For Example, 121 …
Hello everyone, welcome back! Here we will learn a simple python logic to reverse a number. Here we read a number from the user and reverse that number using some arithmetic operations like mod (%) …
Hello every one, welcome back ! Here we will learn a simple python logic to reverse a number. Here we read a number from user and reverse that number using slice operations. We first cast that …