i have a program that converts text into morse code and then outputs it using a module i found in the snippets section but whenever i try to run it, it raises the error that "utext is not iterable"
here is the code:
morse_code={
"a":beeps.a(),
"b":beeps.b(),
"c":beeps.c(),
"d":beeps.d(),
"e":beeps.e(),
"f":beeps.f(),
"g":beeps.g(),
"h":beeps.h(),
"i":beeps.i(),
"j":beeps.j(),
"k":beeps.k(),
"l":beeps.l(),
"m":beeps.m(),
"n":beeps.n(),
"o":beeps.o(),
"p":beeps.p(),
"q":beeps.q(),
"r":beeps.r(),
"s":beeps.s(),
"t":beeps.t(),
"u":beeps.u(),
"v":beeps.v(),
"w":beeps.w(),
"x":beeps.x(),
"y":beeps.y(),
"z":beeps.z(),
"":""}
print"Hello, what do you want to convert?"
utext=raw_input("").lower
for letter in utext:
morse_code[letter]