Code Monkey home page Code Monkey logo

100daysofpython's Introduction

100daysOfPython

Day 1

    Input: Enter number of terms: 5
    Output: The fibonacci series
            0 1 1 2 3 
    Input: Enter a Number: 5
    Output: The factorial for  5  is
            120
    Input: Enter 1st Number: 6
            Enter 2nd Number: 12
    Output:  6.0

Day 2

    Input: Enter 1st Number: 6
            Enter 2nd Number: 8
    Output: 24.0
    Input: Enter a Number: 14
    Output: This is not an Armstrong number"
    
    Input: Enter a Number: 370
    Output: This is an Armstrong number
    Input: Enter a Number: 4
    Output: This is not a fibonacci number
    
    Input: Enter a Number: 34
    Output: This is a fibonacci number

Day 3

    Input: Enter number of elements : 4
           Enter elements of the list
           34
           54
           65
           77
           [34,54,65,77]
    Output: Maximum element in the list:  77
            Minimum element in the list:  34
    Input: Enter a number: 121
    Output: The number 121  is Palindrome
       
    Input: Enter a number: 123
    Output:     Output: The number 123  is not Palindrome
    Input: Enter a number: 2
    Output: 2 is a prime number
    
    Input: Enter a number: 4
    Output: 4 is not a prime number

Day 4

    Input: Enter number of elements : 3
           Enter elements of the list
           1
           2
           3
    Output: True
    
    Input: Enter number of elements : 3
           Enter elements of the list
           4
           2
           3
    Output: Flase
    Input: Enter number of elements : 4
           Enter elements of the list
           34
           54
           65
           77
           [34,54,65,77]
       
    Output: [77,65,54,34]
     Input: Enter number of elements : 4
            Enter elements of the list
            34
            54
            65
            77
            [34,54,65,77]
            Enter number to be searched : 8
    Output:   if a.index(number) == True:
              ValueError: 8 is not in list

Day 5

      Input: Enter number of elements : 4
             Enter elements of the list
             1
             2
             3
             4
             [1,2,3,4]
      Output: Second largest number in the list: 3
   Input:  Enter number of elements : 4
           Enter elements of the list
           1
           2
           3
           4
           [1,2,3,4]
   Output: The swapped list [4, 2, 3, 1]
   Input:  Enter number of elements : 4
           Enter elements of the list
           1
           2
           3
           4
           [1,2,3,4]
   Output: The clonned list [1, 2, 3, 4]

Day 6

      Input: Enter number of elements : 7
             Enter elements of the list
             1
             2
             3
             4
             1
             1
             1
             [1,2,3,4,1,1,1]
             Enter the element to be checked: 3
      Output: The occurance of 3 is 5
   Input:  a = [1,2,3,4,[],5,[],[],8]
   Output: List after empty list removal : [1, 2, 3, 4, 5, 8]

Day 7

      Input: Enter number of elements : 4
             Enter elements of the list
             1
             2
             3
             4
             [1,2,3,4]
             Enter the first element to be removed : 1
             Enter the second element to be removed : 3
      Output: The list after removing multiple elements: [3, 4]
   Input:   Enter number of elements : 4
             Enter elements of the list
             1
             2
             3
             4
             5
             6
             [1,2,3,4,5,6]
             Chunk on which new list form: 2
   Output: The chunked list: [[1, 2], [3, 4], [5, 6]]
   Input:   Enter number of elements : 4
             Enter elements of the list
             1
             2
             3
             4
             5
             6
             [1,2,3,4,5,6]
             Chunk on which new list form: 2
   Output: The cumulative sum of list:  [1, 3, 6, 10, 15]

Day 8

      Input: Enter a numeric string: 1
      Enter the increment number: 12
      Output: Incremented result: 13

Day 9

      Input: lisOfDicts = [
    {"a": 1, "b": 5, "c": 3},
    {"a": 2, "b": 7, "c": 1},
    {"a": 3, "b": 3, "c": 9},
]
      Output: The maximum of each key in list:  {'a': 3, 'b': 7, 'c': 9}
      
      Input: Enter number of elements: 4
      Enter elements of the list
      1
      2
      3
      4
      [1, 2, 3, 4]
Digit to be removed:3
      Output: Modified list: [1, 2, 3]

Day 10

      Input:x = ["a",  "d", "e", "f", "g", "h", "i"]
            y = [0,  0,   1,   2,   2,   0,   1]
      Output: ['a', 'd', 'h', 'e', 'i', 'f', 'g']

100daysofpython's People

Contributors

shivani1917 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.