Starting from:

$30

CSE015-Lab 1 Solved

This lab is meant to give you some practice with the Python programming language. Please complete the following exercises and upload your .py files under the appropriate CatCourses assignments.

Modified Hello World
Write a Python program that asks the user for his/her name, and prints out a greeting message of the form "Hello, <name>", where <name> is the input received from the user.

Integer Classification
Write a Python program that asks the user to enter an integer. Your program should print ODD if the integer is odd, and EVEN if the integer is even. Reminder: an even integer can be represented as 2x, and an odd integer can be represented as 2x + 1, where x∈Z.

More Even and Odd
Write a Python program that asks the user to enter 10 integers, and outputs the largest odd number among them. If no odd numbers were entered, your program should output a message saying: "No odd numbers were entered".

More products