Posts

Python Progrmming Practical No 3

Image
  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.      

Python Programming Practical No 2

Image
  B. P. Sulakhe Commerce College, Barshi Department of Computer Science PRACTICAL NO.2 Class:   BCA-I (Sem-II) Paper Name: Python Programming      Note: All questions are compulsory   Q 1) Write a python program to input any two numbers and find out Smallest number among these numbers. Q 2) Write a python   program to print only even numbers between 0 to 50 using for loop  Q 3) Write a python program to print 100 to 1 reverse natural numbers using while loop Q 4) Write a python   program to print only odd numbers between 1 to 20 using for loop Q 5) Write a python program to input any number and find out given number is positive or negative using nested if-else      

Python program to display stars in right angled triangular form using nested for loops

Image
 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: 

Python Programming Practical no 1

Image
  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.