Skip to content
  • Home
  • Posts
  • Videos
  • Books
  • Contact
  • Search
Programming in Python
All about python
FacebookGoogle PlusYoutubeGithubTwitter
 
  • Home
  • Posts
  • Videos
  • Books
  • Contact
  • Search
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.

Alphabet Patterns, Basic Programs

Python Program to print pattern of letter G

By avinash October 3, 2020 January 17, 2023  alphabet patterns, patterns 0

Hello everyone! Welcome back to programminginpython.com. I am continuing with this pattern programming series, here I will tell you how to print the pattern of the letter G. In the previous tutorials, I have shown …

Continue reading"Python Program to print pattern of letter G"
Basic Programs, Patterns

Diamond Pattern in Python

By avinash September 24, 2020 January 17, 2023  diamond pattern, patterns 0

Hello everybody! Welcome to programminginpython.com, am back with another tutorial. Here I will tell you How to print a diamond pattern in python. In earlier posts, I have shared with you how to print a …

Continue reading"Diamond Pattern in Python"
Basic Programs, Patterns

Reverse Pyramid Pattern in Python

By avinash September 8, 2020 January 17, 2023  patterns, pyramid pattern, reverse pyramid 0

Hello everyone, welcome back to programminginpython.com! As a part of the series on pattern programming, Here I will explain to you how to print a reverse pyramid pattern or a reverse triangle pattern in Python. …

Continue reading"Reverse Pyramid Pattern in Python"
Alphabet Patterns, Basic Programs, Patterns

Python Program to print pattern of letter C

By avinash June 23, 2020 January 17, 2023  alphabet patterns, patterns 0

Hello everyone! Welcome back to programminginpython.com, here in this post I am going to show you how to print a pattern of Letter C. This is a continuation of the letter pattern printing series, in …

Continue reading"Python Program to print pattern of letter C"
Basic Programs, Programs on Dictionaries

Count vowels in a string – Python Program

By avinash May 16, 2020 January 17, 2023  data types, dictionary, loops, strings, vowels 0

Hello everyone, welcome back to programminginpython.com! Here in this tutorial am going to tell how you can count vowels in a string when an input string is received you will be able to count the …

Continue reading"Count vowels in a string – Python Program"
Basic Programs, Math Programs

Python Program to find the LCM of two numbers

By avinash October 4, 2018 January 17, 2023  LCM, loops, numbers, while loop 0

Hello everyone, welcome back to programminginpython.com. Here I am going to tell a simple logic by which we can find the LCM of two numbers in python. LCM means Least Common Multiple, for a given …

Continue reading"Python Program to find the LCM of two numbers"
Basic Programs

Python program to find number of digits in a number

By avinash October 26, 2017 August 13, 2020  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. [embedyt] https://www.youtube.com/watch?v=bpBBcymXP0U[/embedyt] You can watch this video …

Continue reading"Python program to find number of digits in a number"
Basic Programs, Math Programs

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

By avinash November 24, 2016 May 16, 2020  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"Python program to find area of triangle (given base and height)"
Basic Programs, Math Programs

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

By avinash November 4, 2016 May 16, 2020  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"Python program to find area of a triangle ( given all sides )"
Basic Programs

Python program to find a number is prime or composite

By avinash October 18, 2016 June 17, 2020  composite, for loop, input, numbers, prime 1

Hello people, welcome back! Here we discuss a python program that 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"Python program to find a number is prime or composite"

Posts navigation

1 2 3
FacebookGoogle PlusYoutubeGithubTwitter

Recommended Courses

Complete Python Developer: Zero to Mastery.
Automate the boring stuff.
Python and Django Full Stack Web Developer Bootcamp.
Artificial Intelligence and Machine Learning E-Degree.
Complete Python & Python OOP.

Categories

  • Algorithms (7)
  • Alphabet Patterns (26)
  • Basic Programs (24)
  • Database (1)
  • GUI Programs (5)
  • Math Programs (7)
  • Patterns (29)
  • Programs on Dictionaries (2)
  • Programs on Files I/O (1)
  • Programs on Functions (12)
  • Programs on Lists (14)
  • Programs on sets (1)
  • Programs on Tuples (1)
  • Searching Algorithms (2)
  • Sorting Algorithms (5)

Recent Posts

  • Python Program to print pattern of letter Z
  • Python Program to print pattern of letter Y
  • Python Program to print pattern of letter X
  • Python Program to print pattern of letter W
  • Python Program to print pattern of letter V
    • Home|
    • Videos|
    • Books|
    • Contact|
    • Privacy Policy|
    Back to Top
    FacebookGoogle PlusYoutubeGithubTwitter
    programminginpython.com © 2016 - 2018
    Powered by Fluida & WordPress.