Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

it works **smile** , thank to you all for the tips
Shishi General Coding Help 21 5,600 Oct-15-2020, 06:05 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

it says this: <built-in method read of _io.TextIOWrapper object at 0x0170B5B0> it dosn't says the number
Shishi General Coding Help 21 5,600 Oct-15-2020, 05:38 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

i tryied but when i do that like if r == "15": print("win") elif r == "20": print("win") else: print("lose") i will always lose even if i have 15 or 20
Shishi General Coding Help 21 5,600 Oct-15-2020, 04:17 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

right sorry, ok thats now fixed but now it gives me this message Error:Traceback (most recent call last): File "C:\Users\Erminia\Desktop\QuizWorld\risultati\game.py", line 93, in <modu le> ...
Shishi General Coding Help 21 5,600 Oct-15-2020, 03:02 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

ok, so the program is running only that when i get to the last part it says: Error:Traceback (most recent call last): File "C:\Users\Erminia\Desktop\QuizWorld\risultati\game.py", line 93, in <mo...
Shishi General Coding Help 21 5,600 Oct-15-2020, 02:28 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

so... i applied your code and now i have another error: import sys print("**********************") print("*welcome to QuizWorld*") print("**********************") print(" v.1.0.0 ") pri...
Shishi General Coding Help 21 5,600 Oct-15-2020, 01:47 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

(Oct-15-2020, 12:38 PM)GOTO10 Wrote: You don't need to include the newline character in your str() call. You use str() to convert a non-string to a string, and then you can concatenate your newline...
Shishi General Coding Help 21 5,600 Oct-15-2020, 01:17 PM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

here import sys print("**********************") print("*welcome to QuizWorld*") print("**********************") print(" v.1.0.0 ") print("rules: Do not cheat each answer will give you ...
Shishi General Coding Help 21 5,600 Oct-15-2020, 11:42 AM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

sorry i have printed out the wrong error Error: File "C:\Users\Erminia\Desktop\QuizWorld\risultati\game.py", line 20 f.write(str(a1\n)) ^ SyntaxError: unexpected character a...
Shishi General Coding Help 21 5,600 Oct-15-2020, 11:36 AM
    Thread: invalid syntax (BEGINNER)
Post: RE: invalid syntax (BEGINNER)

Done, but now it prints me out a new error: Error: File "C:\Users\ShiShi\Desktop\QuizWorld\risultati\game.py", line 21 with open("lista risultati.txt", 'w') as f ...
Shishi General Coding Help 21 5,600 Oct-15-2020, 11:03 AM
    Thread: invalid syntax (BEGINNER)
Post: invalid syntax (BEGINNER)

Hi, im a beginner to python and i was trying to test my knowledge by creating a simple game, it's a quiz game of four questions, each question answered correctly gets you five points and logs them int...
Shishi General Coding Help 21 5,600 Oct-15-2020, 10:49 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020