Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what are the python codes for these 3 questions? Locked i 2020 SPRING SYS 120 LAB 04.docx Regular 12 B 1.0 Courier New 3 lo

image text in transcribed what are the python codes for these 3 questions?
Locked i 2020 SPRING SYS 120 LAB 04.docx Regular 12 B 1.0 Courier New 3 lo 11 2 14 6 17 Leap year Write a program that asks the user for a year. The program should print out whether or not that year is a leap year, per the rules stated above. The program should continue asking the user to input a year and printing the assessment of leap year or not for 5 iterations. Write a function def isLeap Year(year): that accept the year as an integer argument and returns True or False as the return value from the function. The main function should use this to determine what to print for the determination of leap year or not. L04-11. Write a function called showASCII that accepts a string as an argument. It should print the character and the ASCII value for each character in the string. For instance: >>> showASCII ("ABCD") A-65 B66 C 62 D-68 >>> showASCII ("abc") Q-97 b-98 99 L04-12. Write a function called printASCIIRange that will print the numeric value and the character for every ASCII value between (and including) a low and high range passed as parameters. For instance: >>> printASCII Range (65,691 65-A 66-3 67-C 68-D 69-E L04-13. Write a function reverse String that accepts a string as an argument and returns the string with the characters in reverse order without using the reverse method. Output should be something like: >>> reverseString("Hello") Follo Write the reverse string function in three additional different ways. You may NOT use .reverse)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

Students also viewed these Databases questions

Question

=+ 4. How can policymakers infl uence a nations saving rate?

Answered: 1 week ago