Jump to content
Fórum Script Brasil
  • 0

Invalid Syntax


Question

olá, boa tarde a todos

estou com um problema, estou fazendo um decodificador mas por algum motivo meu codigo é interrompido por um erro de sintaxe.vocês poderiam me ajudar?

segue abaixo o codigo:

nt casas = 11

list alfabeta = ["a","b" ,"c" ,"d" ,"e", "f", "g", "h", "i", "j", "k","l" ,"m" ,"o" ,"p", "q", "r", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2","3" ,"4" ,"5" ,"6", "7", "8", "9"]


str texto = "l rzzo aczrclxxpc wzzvd mzes hljd mpqzcp nczddtyr l zyp-hlj decppe. fyvyzhy"

str deco = ' '

num = alfabeta.find(alfabeta)

num = num + casas

num = num - casas

if num >= len(alfabeta):
    
    elif num < 0:

    num = num - len(alfabeta)

    num = num + len(alfabeta)

    deco = deco + alfabeta[num]
 
else:

    deco = deco + alfabeta
    
print = (deco)

 

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148691
    • Total Posts
      644530
×
×
  • Create New...