Question: 2. Write a a piece of python program based on the following grammer: http://docspythonorg/release/3.0 l/reference/compound stmts.html#if if stmt:= if expression : suite elif expressionsuite)* else.

2. Write a a piece of python program based on the following grammer: http://docspythonorg/release/3.0 l/reference/compound stmts.html#if if stmt:= "if" expression ":" suite "elif" expression""suite)* "else""." suite] You will want to have the following function (1) Once the program runs, it will show the information: (2) If you input a number less than 50, it will print out information: (3) If you input a number equal to 50, it will print out information (4) Otherwise, it will print out information Reference: http /ldocs.python. org/release/3.0 library/functions html "Please input a number" "It's less than 50!" "It's 50!" It's over 50!" 1. Built-in function input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newli function then reads a line from input, converts it to a string 2. Built-in function int([number | stringl, radix]) Convert a number or string to an integer 3. Built-in function: print(object....I, sep- I end-1n']I, file-sys.stdout]) Built-in function: print([object. ][. sep=..][. end=' '][ . file-sys.stdout]) Print objecr(s) to the stream file, separated by sep and followed by end sep,end and file, if present, must be given as keyword arguments 4x 11/29/2017 0 Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
