Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the following programs In ONE .py file and upload the file here on Moodle.

ID: 673244 • Letter: W

Question

Write the following programs In ONE .py file and upload the file here on Moodle. Make sure your .py file runs in IDLE. Ask the user to input 5 words and store them in a list. Print each word in the list that does not begin with the letter 'a' or 'b' or 'c' or 'A' or B' or 'C'. Ask the user to input 3 numbers. Print "Pythagorean Triplet' If the sum of the squares of the first two numbers is the square of the third number. Print "Not a Pythagorean Triplet otherwise. Ask the user to input a positive 4 digit integer. Then print each individual digit on separate lines. You are NOT allowed to use the string data type, and hence not allowed any string operations. You can use mathematical operators like + -, *, /, %, etc. as you deem fit. Ask the user to input a day of the week (Sunday. Monday, etc.). Then print the abbreviation. e.g. Sunday - Sun, Saturday - Sat, but Thursday - Thurs.

Explanation / Answer

def is_pythagorean_triple( a, b, c ): return True if ( a