<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<In what way does your code behave incorrectly? Include ALL error messages.>
So below is my code, I am trying to write a morse code program, I want it to print the first value of these variables if the second value is detected. I have not been writing in 9 months anything and I honestly did not know much about python, I only finished a course on codecademy, so I am just gonna ask a few things. First of all - return needs to be inside of a function, but when input is there also then when I am running the code it is not printing the sentence inside of raw_input. Next - I do not really know how to make it happen not only to single letters - if I print something with capital letters it just brings up error, only works with single letters, and not works like A B C - it also makes error, do not know how to change it to work. I know that I can change it to the point it will not matter if the letter is capital or normal, but I want to bring it to work right now, not work on not so important things at the moment. Will accept any comments, I know that my code is pretty messy, as I said, I have not been coding for 9 months, nothing excuses my absence
I am writing in 2.7.11 python, it is like my first program since december, woke up today and wanted to write something.
<What do you expect to happen instead?>
```pythonA = [".-", βAβ]
B = ["-β¦", βBβ]
C = ["-.-.", βCβ]
D = ["-β¦", βDβ]
E = [".", βEβ]
F = ["β¦-.", βFβ]
G = ["β.", βGβ]
H = ["β¦", βHβ]
I = ["β¦", βIβ]
J = [".β", βJβ]
K = ["-.-", βKβ]
L = [".-β¦", βLβ]
M = ["β", βMβ]
N = ["-.", βNβ]
O = ["β", βOβ]
P = [".β.", βPβ]
Q = ["β.-", βQβ]
R = [".-.", βRβ]
S = ["β¦", βSβ]
T = ["-", βTβ]
U = ["β¦-", βUβ]
V = ["β¦-", βVβ]
W = [".β", βWβ]
X = ["-β¦-", βXβ]
Y = ["-.β", βYβ]
Z = ["ββ¦", βZβ]
list0 = [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z]
def moorse():
text = raw_input("Everything that you will type here will be translated to Morse Code. ")
text.append(list0)
for y in list0:
return x
<do not remove the three backticks above>