SoFunction
Updated on 2024-11-16

Python implementation of creating a new list and a new dictionary, and making the elements and key-value pairs all lowercase.

Python implementation of creating a new list and a new dictionary, and making the elements and key-value pairs all lowercase.

Updated on January 15, 2019 10:23:23 by distracted_
Today I'm going to share with you a python implementation to create a new list and a new dictionary, and make the elements and key-value pairs all lowercase, with good reference value, I hope to help you. Together follow the editor over to see it

As shown below:

lists = ['tom','Jack','luCy','lily','jErry','anna']
dics = {'jack':'python','Lucy':'jaVa','jeRry':'rUby','lily':'c#',}



new_lists = []
for i in lists:
	new_lists.append(())
print(new_lists)



new_dics = {}
for i,j in ():
	new_dics[()] = ()
print(new_dics)

Above this python implementation to create a new list and a new dictionary, and make the elements and key-value pairs all become lowercase is all I have to share with you, I hope to be able to give you a reference, and I hope that you support me more.

  • python
  • listings
  • dictionaries
  • elemental
  • key-value pair

Related articles

  • Python comments and operators in detail

    This article introduces the python annotations and operators, with some reference value, interested partners can refer to, I hope to be able to bring you help!
    2021-12-12
  • Developed locally using pycharm and synchronized to the server in real time

    This article introduces the use of pycharm in the local development and real-time synchronization to the server, the text through the sample code describes the very detailed, for everyone's learning or work has a certain reference and learning value, the need for friends below with the editorial to learn together!
    2019-08-08
  • Pandas Missing Data Handling Implementation

    This article introduces the realization of Pandas missing data processing, the text through the sample code is very detailed, for everyone's learning or work has a certain reference learning value, the need for friends below with the editor to learn together!
    2019-11-11
  • How to use PyMongo in Python3 in detail

    Usually when dealing with data, it is essential to use the database to access the data, for some reasons, individuals very much like MongoDB this database. The following article introduces the use of PyMongo in Python3 method examples, the text is very detailed, the need for friends can refer to reference, the following to take a look together.
    2017-07-07
  • Manipulating mysql databases in django

    Object-relational mapping model is an object-oriented and relational database in order to address the existence of the phenomenon of mutual mismatch of the technology, this article introduces the django in the operation of the mysql database method, need friends can refer to the following
    2022-09-09
  • python how to output classification_report to csv file

    This article mainly introduces the operation of python output classification_report to csv file, with good reference value, I hope to help you. If there is any error or not fully considered, please do not hesitate to give advice!
    2021-05-05
  • Python implementation of getting CAD information through the dxfgrabber library

    dxfgrabber is a Python library for reading and parsing AutoCAD DXF (Drawing Exchange Format) files, this article will teach you how to use the dxfgrabber library to achieve access to CAD information it!
    2023-06-06
  • Python love assistant must be taken!

    I have a good brother recently chased the girl, and the girl played hot! Just short of a foot on the door, this jio I help to make up on it! He asked if there is any cool way of confession, want to be successful once, the way of confession there are many kinds of today Xiaobian to bring you two have to agree with the confession code
    2021-10-10
  • python decorator principle source code example analysis

    This article introduces the depth of python decorator, and through the code shows how to hand-write their own decorator function and class decorator, need friends can refer to, I hope it can help!
    2021-09-09
  • Python Example of Hiding the Screen Reveal When Entering a Password

    Today, I'd like to share an example of Python to hide the screen back when you enter a password, with good reference value, I hope it will help you. Together follow the editor over to see it
    2019-02-02

Latest Comments