Quick links
Latest articles
Internship
Members
New...
Algorithms
Discrete Mathematics
Big data
Languages
C
C++
C++ STL
Java
Data Structure
C#.Net
Android
Kotlin
SQL
Web
PHP
Python
JavaScript
CSS
Ajax
Node.js
Web prog.
Programs
C
C++
DS
Java
C#
Python
Aptitude
C
C++
Java
DBMS
Interview
C
Embedded C
Java
SEO
HR
CS Subjects
CS Basics
O.S.
Networks
DBMS
Embedded Systems
Cloud Computing
Machine learning
CS Organizations
Linux
DOS
More...
Articles
Puzzles
News/Updates

Home

Python solved programs with Output and Explanation



This section contains solved programs in Python with Logic to implement, output and expiations.

List of Python solved programs

Python basic programs

  1. Python | Program to define an integer value and print it.
  2. Python | Program to print numbers from N to 1 (use range() with reverse order).
  3. Python | Print all numbers between 1 to 1000 which are divisible by 7 and must not be divisible by 5.
  4. Python | Calculate square of a given number (3 different ways).
  5. Python | Find factorial of a given number (2 different ways).
  6. Python | Write functions to find square and cube of a given number.
  7. Python | Declare any variable without assigning any value.
  8. Python | Write a function to find sum of two integral numbers in string format.
  9. Python | BMI (Body Mass Index) calculator.
  10. Python | Program to print Odd and Even numbers from the list of integers.
  11. Python | Program to print Palindrome numbers from the given list.
  12. Python | Compute the net amount of a bank account based on the transactions.

Lists

  1. Python | Program to declare and print a list.
  2. Python | Program for Adding, removing elements in the list.
  3. Python | Program to print a list using ‘FOR and IN’ loop.
  4. Python | Program to add an element at specified index in a list.
  5. Python | Program to remove first occurrence of a given element in the list.
  6. Python | Remove all occurrences a given element from the list.
  7. Python | Program to remove all elements in a range from the List.
  8. Python | Program to sort the elements of given list in Ascending and Descending Order.
  9. Python | Program to find the differences of two lists.
  10. Python | Program to Print the index of first matched element of a list.
  11. Python | Program to find the position of minimum and maximum elements of a list.
  12. Python | Program to input, append and print the list elements.
  13. Python | Program to remove duplicate elements from the list.
  14. Python | Program to Create two lists with EVEN numbers and ODD numbers from a list.
  15. Python | Program to print all numbers which are divisible by M and N in the List.
  16. Python | Create a list from the specified start to end index of another list.
  17. Python | Create three lists of numbers, their squares and cubes.
  18. Python | Create two lists with first half and second half elements of a list.
  19. Python | Iterate a list in reverse order.
  20. Python | print list after removing EVEN numbers.
  21. Python | print list after removing ODD numbers.
  22. Python | Input comma separated elements, convert into list and print.

Python string programs

  1. Python | Declare, assign and print the string (Different ways).
  2. Python | Access and print characters from the string.
  3. Python | Program to print words with their length of a string.
  4. Python | Print EVEN length words.
  5. Python | Count vowels in a string.




Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Featured post:
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distribution Software (Distros) of 2018

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.