Python代写 | HS1031 Introduction of Programming

本次Python代写是完成单词统计、乘法口诀等练习

HS1031 Introduction of Programming

1. Characters Count
Write a program (name it charCount.py) that counts the number of letters (small/capital),
numbers and special characters in a given string, and then prints out the output.
For example:
 For the following string:
string1= “jbj83536&#$7kKJH!!”
The output would be:
Number of letters is: 7
Number of numbers is: 6
Number of special characters is: 5
 For the following string:
string2=”*&59FGnds^%837bv”
The output would be:
Number of letters is: 7
Number of numbers is: 5
Number of special characters is: 4
Marks Distribution
Criteria Comments Logic Execution Total
Mark 2 2 2 6
2. Multiplication Table:
Write a program that prints out the multiplication table for numbers from 1 to 12. The output must
be formatted such that 5 spaces are reserved for each digit.
Your output should look like this:
3. Sentence Forming
Write a program that forms a sentence out of two lists. The program concatenates the
corresponding items from each list sequentially, and then prints out the resulting sentence.
For example:
For the following lists:
lst1= [“Py”, “pro”, “i”, “fu”]
lst2= [“thon”, “gramming”, “s”, “n!”]
The output would be:
Python programming is fun!