Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. User8574

    Python I'm not sure what this means and if pygame has been installed successfully.

    This command doesn't work: it gives me this: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings. I am on windows btw.
  2. User8574

    Python I'm not sure what this means and if pygame has been installed successfully.

    (Visual Studio) I installed the newest version of pygame but I'm not sure if it was installed properly. Anyone know? Thanks a lot.
  3. User8574

    Python .get doesn't seem to work :/

    digit_mapping = { "1" == "One", "2" == "Two", "3" == "Three", "4" == "Four" } phone = input("Phone: ") output = "" for digits in phone: output = output + digit_mapping.get(digits, "!") + " " print(output) The .get function is shown as an error (btw this is Python...
  4. User8574

    Python Having problems with if statements in python

    This quiz project doesn't work. print("History Quiz") total_score = 0 print() question1 = input("For how many years did WW2 last? - 3, 5, 6 or 8? ") if int(question1) == 6: print("Correct!") else: print("Better luck next time!") print() question2 = input("In what year did Harry...
  5. User8574

    Python Need help with python calculator issue (bug?)

    I typed in this code operator = input("Choose an operator (1 = Add, 2 = Subtract, 3 = Divide, 4 = Multiply) ") first = input("Enter an integer ") second = input("Enter a second integer ") if operator == 1: result = (float(first) + float(second)) elif operator == 2: result =...
Back
Top Bottom