-
Posts
6034 -
Joined
-
Last visited
-
Days Won
23
CoderDrag0n8's Achievements
3.2k
Reputation
Single Status Update
See all updates by CoderDrag0n8
-
Fun Coding Fact: strings are lists!
string = "hi" print(string[0])
prints out:
h
(also @SpiritOfWrath look at this):
Spoilerdef rangeLength(list): return(range(len(list)) list = [1,2,3,4,5,6] #etc, etc for i in rangeLength(list): #put code here
the python editor is really weird
- Show previous comments 5 more
-
-
list1 = [1, 2, 3, 4] list2 = ["a","b","c","d"] print(zip(list1,list2)) #returns [1, "a", 2, "b", 3, "c", 4, "d"]
-
