• Home
  • Posts
  • Videos
  • Books
  • Contact
Programming in Python
All about python
FacebookGoogle PlusYoutubeGithubTwitter
 
Skip to content
  • Home
  • Posts
  • Videos
  • Books
  • Contact
Home Archive for category "Basic Programs"

Category: Basic Programs

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

  • Checking a number is even or odd
  • Performing arithmetic operations like addition, subtraction, multiplication, division, floor division, modulus, exponential and power operations ( +, -, *, /, //, %, **).
  • Programs on logical operations like AND, OR, NOT.
  • Performing bitwise operations like Binary AND, Binary OR, Binary XOR, Binary one’s compliment. Binary Left Shift, Binary Right Shift (&, |, ^, ~, <<, >>).
  • Reverse of a number
  • Palindrome number
  • Armstrong number

and many more such basic programs. Following are the programs listed in this category.

Basic Programs

Python program to find number of digits in a number

By avinash October 26, 2017 October 30, 2017  arithmetic operations, loops, numbers, while loop 0

Hello everyone, welcome back to programminginpython.com! Here in this post I will show you how to find the number of digits in a number. A pretty simple logic. You can watch this video on Youtube …

Continue reading
Basic Programs, Math Programs

Python program to find area of triangle (given base and height)

By avinash November 24, 2016 May 19, 2017  area, arithmetic operations, triangle 0

Hello everybody, welcome back! Here we learn how to find the area of a triangle when base and height of a triangle are given. We calculate the area by multiplying base and height and dividing it …

Continue reading
Basic Programs, Math Programs

Python program to find area of a triangle ( given all sides )

By avinash November 4, 2016 February 18, 2017  area, arithmetic operations, Heron's formula, input, math, triangle 0

Hello everybody, welcome back! Here we learn how to find the area of a triangle when all the 3 sides of it are given. First, we calculate semi-perimeter s as sum of all sides divided …

Continue reading
Basic Programs

Python program to find a number is prime or composite

By avinash October 18, 2016 May 20, 2017  composite, for loop, input, numbers, prime 1

Hello people, welcome back! Here we discuss a python program which finds whether a given number is a prime number or composite number or neither of them. Definition: A number which is greater than 1 …

Continue reading
Basic Programs

Find square root of a number using sqrt() function

By avinash October 15, 2016 December 14, 2017  arithmetic operations, input, numbers, raw input, square root 1

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 …

Continue reading
Basic Programs, Math Programs

Find square root of a number using exponential operation

By avinash October 11, 2016 December 11, 2017  arithmetic operations, input, numbers, square root 0

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 …

Continue reading
Basic Programs, Programs on Lists

Python program to calculate the sum of elements in a list

By avinash September 26, 2016 February 18, 2017  for loop, input, lists, sum 0

Hello everyone, am back to discuss about 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 …

Continue reading
Basic Programs, Programs on Lists

Python Program to find the Biggest and Smallest of 3 numbers using lists

By avinash September 22, 2016 February 18, 2017  input, largest, lists, smallest 0

Hello people, here we discuss a simple python program which 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 …

Continue reading
Basic Programs, Programs on Lists

Python program to find the largest and smallest number in a list

By avinash September 19, 2016 December 15, 2017  for loop, input, largest, lists, loops, numbers, smallest 1

Hello everybody, this is a Python program which finds out the smallest and largest number in the list. Here we use 2 predefined functions min() and max() which check for the smallest and largest number in a list …

Continue reading
Basic Programs, Programs on Functions

Python Program to find the Biggest and Smallest of 3 numbers

By avinash September 16, 2016 December 19, 2017  functions, input, largest, numbers, smallest 3

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() …

Continue reading

Posts navigation

1 2
FacebookGoogle PlusYoutubeGithubTwitter

Categories

  • Algorithms (5)
  • Basic Programs (18)
  • Database (1)
  • GUI Programs (5)
  • Math Programs (6)
  • Programs on Dictionaries (1)
  • Programs on Files I/O (1)
  • Programs on Functions (10)
  • Programs on Lists (12)
  • Programs on sets (1)
  • Programs on Tuples (1)
  • Searching Algorithms (2)
  • Sorting Algorithms (3)

Recent Posts

  • How to create a Domain to IP converter in Python GUI using TKInter
  • Merge Sort Algorithm in Python
  • Selection Sort Algorithm in Python
  • Bubble Sort algorithm in Python
  • Python Set Operations
https://www.youtube.com/watch?v=sDyOLjixXT0

Trending

  • Python program to calculate the sum of elements in a list
  • Python program to find average of N numbers
  • A simple python GUI calculator using TKInter
  • Python program for performing Arithmetic Operations
  • Python program to find the largest and smallest number in a list
  • Python Program to find the Biggest and Smallest of 3 numbers
  • Layout Managers in Python GUI - Pack, Grid and Place
  • Python program to implement Binary Search Algorithm
  • Python program to implement Linear Search Algorithm
  • Python program to find Factorial of a given number
Subscribe for latest post and updates

Facebook

Facebook

Google+

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.
  • Home|
  • Posts|
  • Videos|
  • Books|
  • Contact|
FacebookGoogle PlusYoutubeGithubTwitter
programminginpython.com © 2016 - 2018
Powered by Fluida & WordPress.