Questions tagged [caesar.py]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

pset6 caesar.py the program show nothing when I type python caesar.py 2 nothing happen. Please help.

from cs50 import get_string import sys def main(): if len(sys.argv) != 2: print("usage: python caesar.py key") exit(1) key = int(sys.argv[1]) translated = [] plaintext ...
0
votes
1answer
41 views

error in the output of caesar for pset6

it just not letting me to enter any value to the command line argument ..help me out!!!it shows me this: ~/workspace/pset6/caesar/ $ python caesar.py Provide command line arguments: ~/workspace/...
0
votes
1answer
16 views

CS50 caesar.py. My program seems logically and syntactically fine, however my encryptions are never correct

import cs50 import sys import string def main(): # checks if there are two arguments if len(sys.argv) != 2: print("Incorrect amount of arguments") return 1 # converts ...
0
votes
1answer
294 views

PSET 6: Caesar.py - stuck on "SyntaxError: invalid syntax"

For my caesar implementation in Python, the CS50 IDE keeps telling me that I have a syntax error at the else portion of my for loop as shown below. Any help would be GREATLY appreciated! Haha, thanks ...
0
votes
2answers
219 views

Caesar.py (PSET 6) ValueError: invalid literal for int() with base 10

I converted my C code into Python, but keep getting this error: ValueError: invalid literal for int() with base 10. This is what my terminal is returning: $ python caesar.py 3 hello Traceback (most ...
0
votes
1answer
178 views

Problem Set 6 CS50 2017 Caesar Issue TypeError: 'str' object does not support item assignment

As the title suggests, when I tried to run my current code for Caesar.py, I got the error message "TypeError: 'str' object does not support item assignment" from the interpreter. My code is like this:...