I want to create a function where for every word of the alphabet the user uses for an input, the console returns the following: a = 0 b = 00 c - 000 And sow on... Example: Sow if the user put the input of "abc", the console will print out: 000000 In my code, i can't seem to add the letters, hers the code:
def codifier():
userImp = input(str("write a word: "))
if userImp == "a":
print("0")
else:
userImp == "b"
print("00")
print(userImp)
codifier()
MY question is how would you write the code?