Skip to content

meetmaru0810/PYTHONE_ASSIGNMENT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PYTHONE_ASSIGNMENT

Topic: Core Python concepts

Introduction of python,If, If- else, Nested if-else,while,for-loop Assignment Level Basic

      B1.What is Python ,Name some of the features of Python.
      B2: Write a Python program to get the Python version you are using?
      B3.Is python the right choice for Web based Programming?
      B4.Why was the language called as Python?
      B5.Write a Python program to check if a number is positive, negative or zero.
      B6.What is the language from which Python has got its features or derived its features?
      B7. Write a Python program to check if variable is of integer or string.
      B8.Does python support switch or case statement in Python?
      If not what is the reason for the same?
      B9.How Python is interpreted?
      B10:- Write a Python program to get the Factorial number of given number
      B11:- Write a Python program to get the Fibonacci series of given range
      B12.How memory is managed in Python?
      B13.What is namespace in Python?
      B14.What is the purpose continue statement in python?

Assignment Level Intermediate

      I1: Write python program that swap two number with temp variable and
      without temp variable
      I2:- Write a Python program to find whether a given number is even or odd,
      print out an appropriate message to the user.
      I3:- : Write a Python program that compute the area of following
      1) Triangle (accepts base and height)2) Circle (accept radius)
      I4:- Write a Python program to test whether a passed letter is a vowel or not
      I5:-Write a Python program to compute the value of a specified principal
          amount, rate of interest, and a number of years
      I6.What are the tools that help to find bugs or perform static analysis?
      I7.What are Python decorators?
      I8.What is PEP 8?

Assignment Level Advance

      A1:- Write a Python program to sort three integers without using
      conditional statements and loops.
      A2:- Write a Python program that accepts an integer (n) and computes the value of
      n+nn+nnn.
      A3:- Write a Python program to sum of three given integers.
      However, if two values are equal sum will be zero.
      A4:- Write a Python program that will return true if the two given integer
      values are equal or their sum or difference is 5.
      A5:- Write a python program to sum of the first n positive integers

Topic: String manipulation Accessing String,Basic Operation,String slice,Function and method

Assignment Level Basic

      B1.Write a Python program to calculate the length of a string.
      B2.Write a Python program to count the number of characters (character frequency)
      in a string
      B3. What are negative indexes and why are they used?
      B4. Explain split(), sub(), subn() methods of “re” module in Python.
      B5.How do you perform pattern matching in Python? Explain
      B6. Write a Python program to count occurrences of a substring in a string
      B7. Write a Python program to count the occurrences of each word in a given sentence

Assignment Level Intermediate

     I1.Write a Python program to get a single string from two given strings,
     separated by a space and swap the first two characters of each string.
     I2.Write a Python program to add 'ing' at the end of a given string
     (length should be at least 3). If the given string already ends with 'ing' then add 'ly' instead
     If the string length of the given string is less than 3, leave it unchanged
     I3.Write a Python program to find the first appearance of the substring 'not'
     and 'poor' from a given string, if 'not' follows the 'poor', replace the whole 'not'...'poor'
     substring with 'good'. Return the resulting string.
     I4. Write a Python function that takes a list of words and returns the
     length of the longest one.
     I5. Write a Python function to reverses a string if it's length is a multiple of 4

Assignment Level Advance

     A1.Write a Python program to get a string made of the first 2 and the last 2 chars
     from a given a string. If the string length is less than 2, return instead of the empty string.
     Go to the editor
     Sample String : 'w3resource'
     Expected Result : 'w3ce'
     Sample String : 'w3'
     Expected Result : 'w3w3'
     Sample String : ' w'
     Expected Result : Empty String
    
     A2.Write a Python program to get a string from a given string where all occurrences
     of its first char have been changed to '$', except the first char itself
    
     A3. Write a Python function to insert a string in the middle of a string

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages