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 (%) …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-program-find-reverse-number-slice\/"},"url":"https:\/\/www.programminginpython.com\/python-program-find-reverse-number-slice\/","headline":"Python program to find reverse of a number using slice","datePublished":"2023-03-30T04:56:56+00:00","dateModified":"2023-06-20T14:34:09+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/python_reverse_1920_4001-1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, numbers, reverse, slicing","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-program-arithmetic-operations\/"},"url":"https:\/\/www.programminginpython.com\/python-program-arithmetic-operations\/","headline":"Python program for performing Arithmetic Operations","datePublished":"2023-03-30T04:56:56+00:00","dateModified":"2023-04-22T08:10:05+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/arithmeticOperations1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, math, numbers","description":"

This is basic python program for all beginners in python programming language. It simply takes two integer numbers and performs arithmetic operations like addition, subtraction, multiplication, division, floor division, modulus and exponential(power) on them. Program …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-program-area-triangle-base-height\/"},"url":"https:\/\/www.programminginpython.com\/python-program-area-triangle-base-height\/","headline":"Python program to find area of triangle (given base and height)","datePublished":"2023-03-30T04:56:55+00:00","dateModified":"2023-04-08T09:13:14+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/AreaofTriangle_baseHeight-1920x4001-1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"area of triangle, basic, math","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-program-find-number-prime-composite\/"},"url":"https:\/\/www.programminginpython.com\/python-program-find-number-prime-composite\/","headline":"Python program to find a number is prime or composite","datePublished":"2023-03-30T04:56:55+00:00","dateModified":"2025-03-29T08:46:02+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/primeOrComposite1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, composite, numbers, prime","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/count-vowels-string-python-program\/"},"url":"https:\/\/www.programminginpython.com\/count-vowels-string-python-program\/","headline":"Count vowels in a string – Python Program","datePublished":"2023-03-30T04:56:53+00:00","dateModified":"2023-05-21T19:24:14+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/pip_featured_image_vowels_count1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, count, count vowels, strings","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/biggest-smallest-3-numbers\/"},"url":"https:\/\/www.programminginpython.com\/biggest-smallest-3-numbers\/","headline":"Python Program to find the Biggest and Smallest of 3 numbers","datePublished":"2021-07-20T04:56:56+00:00","dateModified":"2023-05-14T14:11:21+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/BiggestSmallest-11.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, biggest, else, functions, if, numbers, smallest","description":"

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() …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/even-odd-number-python\/"},"url":"https:\/\/www.programminginpython.com\/even-odd-number-python\/","headline":"Python Program to find whether an integer is even or odd number","datePublished":"2018-10-12T04:56:56+00:00","dateModified":"2023-05-14T14:28:00+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/even_odd.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, else, even, if, numbers, odd, python","description":"

In this post, we will develop a simple logic to check whether an integer is even or odd number. Any number( positive\/negative ) which is divisible by number 2 is declared as an even number …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-biggest-smallest-3-numbers-lists\/"},"url":"https:\/\/www.programminginpython.com\/python-biggest-smallest-3-numbers-lists\/","headline":"Find the Biggest and Smallest of 3 numbers using lists in Python","datePublished":"2018-05-18T03:56:56+00:00","dateModified":"2023-05-14T14:18:01+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/BiggestSmallestList1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, lists, numbers","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}},{"@context":"https:\/\/schema.org\/","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https:\/\/www.programminginpython.com\/python-program-calculate-sum-elements-list\/"},"url":"https:\/\/www.programminginpython.com\/python-program-calculate-sum-elements-list\/","headline":"Python program to calculate the sum of elements in a list","datePublished":"2017-08-30T04:56:56+00:00","dateModified":"2025-06-06T10:55:59+00:00","publisher":{"@type":"Organization","@id":"https:\/\/www.programminginpython.com\/#organization","name":"Programming In Python","logo":{"@type":"ImageObject","url":"","width":600,"height":60}},"image":{"@type":"ImageObject","url":"https:\/\/www.programminginpython.com\/wp-content\/uploads\/2023\/03\/sum_of_elements_list1.png","width":1920,"height":400},"articleSection":"Basic Programs","keywords":"basic, for loop, lists, sum","description":"

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 …<\/p>","author":{"@type":"Person","name":"AVINASH NETHALA","url":"https:\/\/www.programminginpython.com\/author\/avinash\/","image":{"@type":"ImageObject","url":"https:\/\/secure.gravatar.com\/avatar\/ed52e7670d7db94820c7430d324103ccdecb16d86611d5b29064aa9ce25a958b?s=96&d=mm&r=g","height":96,"width":96},"sameAs":["https:\/\/www.programminginpython.com\/"]}}]}

Home » basic