Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

duplicate a list with lowercase in python

colors = ['Red', 'Blue', 'Green', 'Purple']
lower_colors = [ ]

for color in colors:
  lower_colors.append(color.lower())

print(lower_colors)

#output - ['red', 'blue', 'green', 'purple']
Comment

PREVIOUS NEXT
Code Example
Python :: art library in python spyder 
Python :: How to make a script that reads from Database and then writes to the csv file and then uploads the file to Google Drive in python 
Python :: python list all youtube channel videos 
Python :: save lines from a file 
Python :: how to make py file open in current directory 
Python :: ascii value of pi symbol in python 
Python :: get method to create a set of counters in python 
Python :: print out python 
Python :: PHP echo multiple lines example Using Heredoc 
Python :: back of list 
Python :: coin flip numpy 
Python :: Python - Cara Mengurutkan String Secara alfabet 
Python :: pandas ta quick start example 
Python :: how to rename columns using panda object 
Python :: regex emaple py 
Python :: cx_freeze include images in specific path 
Python :: drop values in column with single frequency 
Python :: permcheck codility python 
Python :: float python precision 
Python :: tuple with only one element in Python 
Python :: open file rw python 
Python :: get false positives from confusoin matrix 
Python :: computecost pyspark 
Python :: pandas plot column titles vertical 
Python :: File "<ipython-input-12-48c6c043344b", line 29 coin = random.randint(0,1) ^ IndentationError: expected an indented block 
Python :: Compute Jordan normal form of matrix in Python / NumPy 
Python :: Finding the Sum of a Symmetrical Sub-List 
Python :: paystack python 
Python :: python generator for reading and writing file 
Python :: how to get rid of an instance variable python 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =