Skip to content

Gokul-1812/PythonLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Program List

  1. Accept the radius from user and find area of circle.
  2. Find biggest of 3 numbers entered by user from console.
  3. Create a string from an input string where all occurence of the first character replaced with '&' except first character.
  4. Accept an integer n<10 and compute n+nn+nnn.
  5. Accept a filename from user and print extension of that.
  6. Create a word from given string by exchanging first and last character.
  7. Create a single string seperated with space from two strings by swapping character at position 1.
  8. Display leap years from current year to a future year entered by user.
  9. Accept comma seperated colour names from user and print alternate colours.
  10. Count the no: of worrds in a sentance.
  11. Create a list of first names. Count the no: of names starting with 'a'.
  12. List comprehension
  13. List comprehension
    1. Generate a positive list of numbers from a given list.
    2. Generate a list with square of numbers from a givem list.
    3. From a list containing vowels from a given word.
    4. Generate ordinal value for each letter of a word.
    5. Generate a list removing even numbers.
  14. Write python program to merge two dictonaries.
  15. Write a program to sort a dictonary in ascending and descending order.
  16. Print out all colours from colour list1 not contained in colour list2.
  17. Write a program to determine frequency of words in a sentance.
  18. Write a program to determine frequency of alphabets in a word.
  19. Enter 2 collections of integers. Check (a) whether they are of the same length (b) whether they sums to the same value (c) whether any value occur in both.
  20. Write a program to remove duplicate from a list.
  21. Write a program to create an inverted dictonary.
  22. Write a program to check if a given key is already exists in a dictionary.
  23. Write a python program to add 'ing' at the end of the word. If already ends with 'ing', then ass 'ly'.
  24. Accept a sentance from user and return length of the longest word, if the result has more than one word, then print 'BINGO'.
  25. Accept the percentage of marks from user and display grade.
    Percentage Grade
    >90 O
    80-90 A
    70-80 B
    50-70 C
    <50 F
  26. Generate a string by combaining first two characters and last two characters from an input string. If the length of input string is 2, then resultant string must be a concatenation of those characters or if length less than 2, return an empty string instead.
  27. Find the first appearance of 'not' followed by 'bad' in a given string. If found then replace the whole 'not bad' substring with 'good'.
  28. Evaluate using conditional statement.
    1. Check whether a given number is even or odd and return even or odd appropiately.
    2. Check whether an item is available in a list and return 'Available' or 'Not available' appropiately.
  29. Write a python program to find factorial of a number.
  30. Write a program to generate Fibonacci series of m terms.
  31. Find sum of all numbers in a list.
  32. Generate a list of four digit numbers in a given range with all their digits even and the number is a perfect square.
  33. Display the given pyramid with step number accepted from user.
  34. Generate the pattern.
    *
    * *
    * * *
    * * * *
    * * * * *
    * * * *
    * * *
    * *
    *
  35. Write a program to generate all factors of a given number.
  36. Find GCD of 2 numbers.
  37. Accept a list of integers from user. For all values above 100 store the string 'Over' in the specific position.
  38. Accept a sentance from user and display the total count of vowels in the sentance.
  39. Write a program that print numbers from 1 to 20. For every mupltiple of 3, print 'Fizz', for every multiple of 5, print 'Buzz' and for every multiple of both 3 and 5 print 'FizzBuzz', instead of the original number.
  40. Write a program to search an item in a given list and display the number of occurences of the given item.
  41. Write a program to print all even numbers from a given list in the given order until you reach number 237 or end of the list.
  42. Write a program to remove all odd indexed characters from a given string.
  43. Write a program that accepts a comma seperated sequence of words as input and print unique words insorted order.
  44. Write a program that count the number of strings where string length is 2 or more and the first and last characters are same.
  45. Write a program that count odd and even numbers in a given list.
  46. Write a program that accepts a sequence of comma seperated 4 digit binary numbers and print those numbers divisible by 5 as comma seperated sequence.
  47. Write a function to get a new string from a given string by adding 'Is' to the begining of the input string. If the given string already begins with 'Is', return the input string unchanged.
  48. Write a function that accept aword and a count, n(non-negative integer) and return n copies of the word.
  49. Write a function that accepts 2 integers, perform the 4 basic arithmetic opereations and return the result.
  50. Write a function that returns whether 2 integers given are equal, they adds to 5 and their differnce is 5.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages