CLASS 11

COMPUTER SCIENCE PRACTICALS

  1. Write a program in Python to Input a welcome message and display it.
  2. Write a program in Python to Input two numbers and display the larger number.
  3. Write a program in Python to Input two numbers and display the larger number.
  4. Write a program in Python to Input three numbers and display the largest number.
  5. Write a program in Python to Input three numbers and display the smallest number.
  6. Write a program in Python to generate the following pattern using nested loops:         

    12345

    12345

    12345

    12345

    12345

  7. Write a program in Python to generate the following pattern using nested loops:          

    11111

    22222

    33333

    44444

    55555

  8. Write a program in Python to generate the following pattern using nested loops:          

    1

    12

    123

    1234

    12345

  9. Write a program in Python to generate the following pattern using nested loops:          

    1

    22

    333

    4444

    55555

  10. Write a program in Python to generate the following pattern using nested loops:        

    12345

    1234

    123

    12

    1

  11. Write a program in Python to generate the following pattern using nested loops:       

    55555

    4444

    333

    22

    1 

  12. Write a program in Python to generate the following pattern using nested loops:        

    54321

    5432

    543

    54

    5

  13. Write a program in Python to generate the following pattern using nested loops:        

    5

    54

    543

    5432

    54321

  14. Write a program in Python to generate the following pattern using nested loops:        

    A

    AB

    ABC

    ABCD

    ABCDE

  15. Write a program in Python to generate the following pattern using nested loops:        

    *

    **

    ***

    ****

    *****

  16. Write a program in Python to generate the following pattern using nested loops:        

            1

          123

        12345

      1234567

    123456789

  17. Write a program in Python to generate the following pattern using nested loops:        

    ABCDEFEDCBA

    ABCDE EDCBA

    ABCD      DCBA

    ABC            CBA

    AB                 BA

    A                      A

  18. Write a program in Python to generate the following pattern using nested loops:        

               1

             234

          56789

    10111213141516

  19. Write a program in Python to display the first 'n' terms of a Fibonacci series.
  20. Write a program in Python to input a number and determine the sum of the digits of that number.
  21. Write a program in Python to input a number and determine the multiplication of the digits of that number.
  22. Write a program in Python to input a number and determine whether the number is an Armstrong number or not.
  23. Write a program in Python to print all Armstrong numbers from 0 to 10000.
  24. Write a program in Python to input a number and determine whether the number is a perfect number or not.
  25. Write a program in Python to input a number and determine whether the number is a prime number or not.
  26. Write a program in Python to to generate all prime numbers between 2 to 100.
  27. Write a program in Python to input a number and determine whether the number is composite number or not.
  28. Write a program in Python to compute the greatest common divisor of two integers.
  29. Write a program in Python to computer the least common multiple of two integers.
  30. Write a program in Python to input a string and determine whether the string a palindrome or not.
  31. Write a program in Python to input a string, then Count and display the number of vowels, consonants, uppercase, lowercase characters in string. 
  32. Write a program in Python to input a string and convert the case of characters (uppercase to lowercase and lowercase to uppercase) in the string. 
  33. Write a program in Python to Input a list of numbers and find the largest number in a list.
  34. Write a program in Python to Input a list of numbers and find the smallest number in a list.
  35. Write a program in Python to Input a tuple of numbers and find the largest number in a tuple.
  36. Write a program in Python to Input a tuple of numbers and find the smallest number in a list.
  37. Write a program in Python to Input a list of numbers and swap elements at the even location with the elements at the odd location. 
  38. Write a program in Python to Input a list of numbers and find the index of a specific element.
  39. Write a program in Python to Input a tuple of numbers and find the index of a specific element.
  40. Write a program in Python to create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have marks above 75.
  41. Write a program in Python to input a list of numbers and find the mean, mode and median.
  42. Write a program in Python to create a list of 10 random numbers between 1 to 100.
  43. Write a program to input the value of x and n and print the sum of the following series:  1 + x + x2 + x3 + x4 + ---------- + xn
  44. Write a program to input the value of x and n and print the sum of the following series: 1 - x + x2 - x3 + x4 + ----------  xn
  45. Write a program to input the value of x and n and print the sum of the following series: x + x2/2 + x3/3 + x4/4 + ---------- + xn/n
  46. Write a program to input the value of x and n and print the sum of the following series: x + x2/2! + x3/3! + x4/4! + ---------- + xn/n!
  47. WAP in Python to input a string and display the frequency of each character using dictionary
  48. WAP in Python to create a dictionary with name of employee, their salary and access them.
  49. WAP in the Python to create a list and find the mean of all numeric values stored in the list.
  50. Write a program in Python to count the frequency of all elements of a list.
  51. Write a program in Python to count the frequency of all elements of a tuple
  52. Write a program in Python to find the mean of numeric values stored in the given tuple.
Launch your GraphyLaunch your Graphy
100K+ creators trust Graphy to teach online
𝕏
S P SHARMA CLASSES 2024 Privacy policy Terms of use Contact us Refund policy