B. P. Sulakhe Commerce College, Barshi Department of Computer Science PRACTICAL NO.1 Class: BCA-I (Sem-II) Paper Name: Python Programming practical no 1 Note: All questions are compulsory Q 1) Write a python program to display multiplication table from 1 to 10 using nested for loops Q 2) Write a python program to display stars in right angled triangular form using nested for loops. Q 3) Write a python program to find the sum of a list of numbers using for loop. Q 4) Write a python program to display numbers from 10 to 6 and break the loop when the number about to display 5. Q 5) Write a python program to display numbers from 1 to 5 using the continue statement.
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.