Professional Documents
Culture Documents
Alka Ferrian Conditional Statement Exercise
Alka Ferrian Conditional Statement Exercise
1) Write an if statement that asks for the user's name via input () function. If the name is
"Bond" make it print "Welcome on board 007." Otherwise make it print "Good morning
NAME". (Replace Name with user's name)
2) Write a function named "evens" which returns True if a number is even and otherwise
returns False.
3) Write a function named "thedecimal" which returns the decimal part of a number. If
decimal part is zero function should return this string: "INTEGER".