Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.
Provide the following.
Give an example of a class and an example of an object. Describe what a class is, what an object is, and how they are related. Use your examples to illustrate the descriptions.
Write C++ program to take input in variables "n" and "L" from user and print following character pattern
.For reference, ASCII chart is also given below.
Sample inputs and output are shown below
n=5, L=’A’
A
*C
**E
***G
****I
*****K
****I
***G
**E
*C
A
For sample inputs: n=5, L=’a’
a
*c
**e
***g
****i
*****k
****i
***g
**e
*c
a