About Lesson
Q.1 wap to input a number and print square of value using function
def sqr(a): n=a**2 print(“Square is: “,n) num=int(input(“Enter any number “)) sqr(num) |
def sqr(a): n=a**2 print(“Square is: “,n) sqr(5) |
2. wap to count to vowel or consonant of any word entered by user by using function
3. define a function which counts upper case character and lower case character in a word