Zhejiang University version of python programming programming practice problem solutions

Part of PAT Grade A problem solutions are not regularly updated on github, please refer to the specific warehouse for details

Chapter 1-1 keyboard input from two numbers, and seeking and their outputs (30)
Chapter 1-2 keyboard input to the three numbers a, b, c, the output value according to the formula (30 minutes)
of Chapter 1-3 Output "Python language is easy to learn" (10 points)
Chapter 2-1 Calculate 11+12+13+…+m (30 points)
Chapter 2-2 Calculate piecewise functions (10 points)
Chapter 2 -3 Tiered Electricity Price (15 points)
Chapter 2-4 Special a series summation (20 points)
Chapter 2-5 Finding the sum of the first N items of an odd-numbered fractional sequence (15 points)
Chapter 2-6 Finding the interleaved sequence and a first N (15 minutes)
Chapter 2-7 to generate the same number of bits per digital n (30)
Chapter 2-8 using the transfer function (30)
Chapter 2-9 compare the size (10 minutes)
of Chapter 2-10 Output Fahrenheit-Celsius Temperature Conversion Table (15 points)
Chapter 2-11 Find the partial sum of the square and reciprocal sequence (15 points)
Chapter 2-12 Output the area and perimeter of a triangle (15 points)
Chapter 2 -13 Calculate Resident Water Fees in Segments (10 points)
Chapter 2-14 Find the integer segment sum (15 points)
Chapter 3-1 Greater than the average height (10 points)
Chapter 3-2 Check ID card (15 points) )
Chapter 3-3 The position index of the output letter in the string (20 points)
Chapter 3-4 Find the specified character (15 points)
Chapter 3-5 Character conversion (15 points)
Chapter 3-6 Find the occurrence of an integer sequence Most frequent (15 points)
Chapter 3-7 Find the maximum value and its subscript (20 points)
Chapter 3-8 Reverse the string order (15 points)
Chapter 3-9 Convert a character string to a decimal integer (15 points)
Chapter 3-10 Statistical uppercase Consonants (15 points)
Chapter 3-11 Sorting strings (20 points)
Chapter 3-12 Finding the digits of an integer and the sum of each digit (15 points)
Chapter 3-13 String substitution (15 points)
Chapter 3 Chapter 3-14 Character string conversion (15 points)
Chapter 3-15 Count the number of words in a line of text (15 points)
Chapter 3-16 Delete duplicate characters (20 points)
Chapter 3-17 Delete characters ( 30)
Chapter 3-18 will not be repeated output 10 letters of the alphabet (30)
Chapter 3-19 to find the longest string (15 minutes)
Chapter 3-20 reverse three-digit (10 minutes)
of Chapter 3-21 Judging Palindrome Strings (15 Points)
Chapter 3-22 Output Capital English Letters (15 Points)
Chapter 4-1 Generating a Power Table of 3 (15 Points)
Chapter 4-2 Counting Prime Numbers and Finding Sum (20 points)
Chapter 4-3 The Monkey Eating Peach Problem (15 points)
Chapter 4-4 Verifying the "Goldbach Conjecture" (20 points)
Chapter 4-5 Approximation of e (15 points)

Guess you like

Origin blog.csdn.net/weixin_45845039/article/details/113765737