Coder Social home page Coder Social logo

python_2's Introduction

Python_2

1-- Write a Python program to sum all the items in a list.

2-- Write a Python program to get the smallest and maximum numbers from a list.

3-- Write a Python program to remove duplicates from a list

4-- Write a Python program to get the difference between the two lists.

5-- Write a Python program to append a list to the second list.

6-- **Write a Python program to find the second smallest number in a list.

7-- **Write a Python program to count the number of strings where the string length is 2 or more, and the first and last character are same from a given list of strings.

8-- Write a Python script to concatenate following dictionaries to create a new one. Sample Dictionary : dic1={1:10, 2:20} dic2={3:30, 4:40} dic3={5:50,6:60} Expected Result : {1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6: 60}

9-- ** Write a Python program to combine values in python list of dictionaries. Sample data: [{'item': 'item1', 'amount': 400}, {'item': 'item2', 'amount': 300}, {'item': 'item1', 'amount': 750}] Expected Output: Counter({'item1': 1150, 'item2': 300}

10-- Write a Python script to check if a given key already exists in a dictionary. duplicate , like 8 11- Write a Python script to merge two Python dictionaries

12-- Write a Python program to get the maximum and minimum value in a dictionary.

not uderstood 13-- Write a Python program to get the key, value and item in a dictionary.

14-- Write a Python program to create a tuple with different data types

15-- Write a Python program to add an item in a tuple. ===> not aplicable

16-- Write a Python program to convert a tuple to a string.

17- Write a Python program to find the repeated items of a tuple.

18-- Write a Python program to remove an item from a set if it is present in the set.

19-- Write a Python program to find maximum and the minimum value in a set

python_2's People

Contributors

yoyoraso avatar

Watchers

James Cloos avatar  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.