nouveaux challenges
This commit is contained in:
@ -9,7 +9,7 @@ for line in lines:
|
||||
chunks = line.split("+")
|
||||
for chunk in chunks:
|
||||
s = chunk.split("x")
|
||||
color = "0" if s[0] == "1" else " "
|
||||
color = " " if s[0] == "1" else "#"
|
||||
count = int(s[1])
|
||||
print(color * count, end="")
|
||||
print("")
|
||||
|
||||
Reference in New Issue
Block a user