Question : Write a python program to display stars in right angled triangular form using nested for loops . r= int(input("Please enter the rows : ")) print("Program is constructed under Knowledge Hub ..") for i in range(1, r + 1): for j in range(1, i + 1): print('*', end = ' ') print() Output:
B. P. Sulakhe Commerce College, Barshi Department of Computer Science PRACTICAL NO.3 Class: BCA-I (Sem-II) Paper Name: Python Programming Note: All questions are compulsory Q 1) Write a python program to create a dictionary with employee details and retrieve the values upon giving keys. Q 2) Write a python program to create an appropriate tuple and print it. Q 3) Write a function to test whether a number is prime or not. Q 4) Write a python program to create two tuples and then join these tuples and then display third tuple. Q 5) Write a python program to input any two numbers and find out largest number among these numbers.
#Write a program to input any two number and find out Smallest number among these numbers. x= int(input("Enter Value for X: ")) y= int(input("Enter Value for Y: ")) if (x<y): print("X is Smallest Number ") else: print("Y is Smallest Number") Output: