My own code

this is my code for the caeser cipher but it comes up with errors that I cant fix please help

  1. import sys
  2. def main(argv):
  3. if (len(sys.argv) != 2): 
    
  4.   sys.exit('Usage: sub.py <k>') 
    
  5.   plaintext = list(raw_input('Enter message: ')) 
    
  6.   alphabet = list('abcdefghijklmnopqrstuvwxyz') 
    
  7.   k = int(sys.argv[1]) 
    
  8. cipher = ‘’ "
  9. for c in plaintext:
  10. if c in alphabet:
  11. cipher += alphabet[(alphabet.index©+k)%(len(alphabet))]
  12. print 'Your encrypted message is: ’ + cipher
  13. if name == “main”:
  14. main(sys.argv[1:])

Use one of the following instructions to make your code indent visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard