Questions tagged []

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

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

from cs50 import get_string import sys def main(): if len(sys.argv) != 2: print("usage: python key") exit(1) key = int(sys.argv[1]) translated = [] plaintext ...
Bethuel Mavhungu's user avatar
0 votes
1 answer

error in the output of caesar for pset6

it just not letting me to enter any value to the command line argument me out!!!it shows me this: ~/workspace/pset6/caesar/ $ python Provide command line arguments: ~/workspace/...
Asha Thomas's user avatar
0 votes
1 answer

CS50 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 ...
Ben's user avatar
  • 1
0 votes
1 answer

PSET 6: - 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 ...
beiyingseah's user avatar
0 votes
2 answers
257 views (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 3 hello Traceback (most ...
Lele's user avatar
  • 67
0 votes
1 answer

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, I got the error message "TypeError: 'str' object does not support item assignment" from the interpreter. My code is like this:...
Osman Zakir's user avatar