CoderMantra

Menu
  • Home
  • Quiz
  • How-To
  • Q/A
  • Blog

Tag: python practice questions

A program in Python that will accept any string and will calculate the number of digits and letters in that string.

April 5, 2023
| No Comments
| Assignments, Practice Questions, Python-Assignments

In the above Python program to calculate the number of digits and letters in a string we used built-in function isdigit() to calculate the number of digits and isalpha() to calculate the number of letters. Sample Output: Input a string : Hello5World Letters 10 Digits 1

Read More »

Python program to create the following pattern.

April 5, 2023
| No Comments
| Assignments, Practice Questions, Python-Assignments

This is a star pattern program in Python that can be created with the help of nested loop that will iterate from row as in i and j as in column.

Read More »

  • 2 of 2
  • « Previous
  • 1
  • 2

python practice questions

  • Python program to create the following pattern.
  • A program in Python that will accept any string and will calculate the number of digits and letters in that string.
  • A program in Python to search an element in an ordered list using binary search.
  • A python program to calculate the number of occurrences of a specified element in an array.
  • Python program to remove a specified item using array index.
  • A program in Python that will generate a list of all possible permutations from a given collection of distinct numbers.
  • Python program to find the type of the progression and the next successive member of the three successive members of a sequence.
  • A program in python to count the number of each character in a text file.
  • A program in python to convert all the characters into uppercase and lowercase and eliminate duplicate letters from a given sequence.
  • A program in python to check if a triangle is an equilateral or an isosceles or a scalene triangle.
About CoderMantra

Coder Mantra is a unique e-learning website, offers a tutorial of different popular programming languages with examples. The code on this popular tutorial website is tested and executed.

Latest Posts
Double Linked List in Java. July 15, 2025
Simple Calculator Program in Python April 25, 2025
Number Guessing Game in Python April 25, 2025
Python Program to Swap Two Variables April 14, 2025
Contact Us

info@codermantra.com

admin@codermantra.com

© 2020 Coder Mantra . All Rights Reserved
About | Privacy Policy | Terms | Contact