Calculate the number of letters and digits

Assignment Help Python Programming
Reference no: EM132357250

Question

Write a program that accepts a sentence and calculate the number of letters and digits.

Suppose the following input is supplied to the program:

hello world! 123

Then, the output should be:

LETTERS 10

DIGITS 3

Reference no: EM132357250

Questions Cloud

Calculate the number of upper case letters and lower case : Write a program that accepts a sentence and calculate the number of upper case letters and lower case letters.
Amount of money each student puts : Denote as ei the amount of money each student puts into his/her envelope and find all symmetric Nash equilibria (where e1=e2=e3). What kind of game is this?
Write a program which accepts a sequence of words : Write a program which accepts a sequence of words separated by whitespace as input to print the words composed of digits only.
Generate a list where the values are square of numbers : Define a function which can generate a list where the values are square of numbers between 1 and 20 both included.
Calculate the number of letters and digits : Write a program that accepts a sentence and calculate the number of letters and digits. Suppose the following input is supplied to the program.
Determine whether or not it has three consecutive letters : Write a program that accepts a word as input and determines whether or not it has three consecutive letters that are also consecutive letters in the alphabet.
Create a python function that prints a right triangle : Create a Python function called print Triangle that expects one argument, a non - negative integer, and prints a right triangle.
Calculate the nth power of 2 starting from 1 : For the integer numbers ranging from 2 to 2n where 2n is less than 10000, please calculate and print out their total. Calculate the nth power of 2 starting.
Write a program to calculate the sum of three given numbers : Write a Python program to calculate the sum of three given numbers, if the values are equal then return thrice of their sum.

Reviews

Write a Review

Python Programming Questions & Answers

  Create an an expression that produces a list of all values

Create an an expression that produces a list of all the values from 1 to n, which are not divisible by 2 or divisible by 3.

  Plot the bar chart of a dataset

MA1008 Introduction to Computation Thinking - Compose the chart from basic graphic elements like points, lines and texts using functions in Turtle

  Make a recursion and the divisible function

Your program may assume that both arguments to is_power are positive integers. Note that the only positive integer that is a power of "1" is "1" itself.

  Write python script that reads and analyses country metadata

ICT702 Task 2 - Theme: Child Mortality. In this second part of Task 2, you should write another Python script that reads and analyses the country metadata

  Create a python script that takes two parameters

Create a Python script that takes two parameters. List all files names, size, date created in the given folder. Use catch-exception block.

  Write a program to accept the food expenses of five students

Write a program to accept the food expenses of five students. Calculate and display the total expenses from all the five students combined.

  Develop a web-server that allows the database

Develop a web-server that allows the database to be queried using any web-browser.

  Calculate the correlation in daily adjusted close and volume

Develop a new variable return, defined as the percentage change of a day's Adjusted Close compared to last trading day's Adjusted Close.

  Write a program to read data from summary table

Write a program to: Read data from "SUMMARY" table on FTSE 100 index web page (sea Fig 1) then save them into your Python code

  Write program that will repeatedly ask user to enter strings

Write a program that will repeatedly ask the user to enter strings, one at a time.If the user enters the string print, your program should print out the string.

  Write a program that prompt the user to enter five numbers

Write a program that prompt the user to enter five positive numbers and calculate the average. When a negative number is entered, program will be terminated.

  Develop a software in python for performing nearest neighbor

Topic: Develop a software in Python for performing nearest neighbor and furthest neighbor analysis using the squared euclidean distance

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd