Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop for multiple things

dict1 = {1: "Bitcoin", 2: "Ethereum"}
for key, value in dict1.items():
    print(f"Key {key} has value {value}")
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #loop #multiple
ADD COMMENT
Topic
Name
4+9 =