Skip to main content
    • ଓଡ଼ିଆ ‎(or)‎
      • English ‎(en)‎
      • Tamil ‎(ta)‎
      • عربي ‎(ar)‎
      • मराठी ‎(mr)‎
      • हिंदी ‎(hi)‎
      • বাংলা ‎(bn)‎
      • ਪੰਜਾਬੀ ‎(pan)‎
      • ગુજરાતી ‎(gu)‎
      • ଓଡ଼ିଆ ‎(or)‎
      • ಕನ್ನಡ ‎(kn)‎
    1. Labs
    2. Python Labs for CBSE Class 12
    3. 5.1. Programming in Python:
    Take a sample of 10 phishing e-mails and find the most common words.
    Compute EMIs for a loan using the numpy or scipy libraries.
    Open a webpage using the urllib library.
    Create a graphical application that accepts user inputs, performs some operation on them, and then writes the output on the screen. For example, write a small calculator. Use the tkinter library.
    Write a Python program to plot the function y = x 2 using the pyplot or matplotlib libraries.
    Write a recursive Python program to test if a string is a palindrome or not.
    Write a Python program to implement a stack and queue using a list data-structure.
    Write a recursive code to find the sum of all elements of a list.  Write a recursive code to compute the n th Fibonacci number.
    Write a random number generator that generates random numbers between 1 and 6 (simulates a dice).
    Write a Python function sin(x, n) to calculate the value of sin(x) using its Taylor series expansion up to n terms. Compare the values of sin(x) for different values of n with the correct value.
    Remove all the lines that contain the character `a' in a file and write it to another file.
    Read a file line by line and print it.
    Recursively find the factorial of a natural number.
    Programming in Python:
    Skip Global search

    Global search

    Advanced search
    Data retention summary