Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: replace() takes at least 3 arguments (2 given) part 2 #17

Open
swimmer2020 opened this issue Apr 13, 2020 · 1 comment
Open

Comments

@swimmer2020
Copy link

No description provided.

@swimmer2020
Copy link
Author

this is my code:
##replacing the old high score with their new high score##
filedata = database.read()
database.close()
newdata=filedata.replace(userStuff[0]+" "+userStuff[1]+" "+userStuff[2]+userStuff[0]+" "+userStuff[1]+" "+str(player1score))
database=open("usernames","w")
database.write(newdata)

It comes up with the error:
TypeError: replace() takes at least 3 arguments (2 given)

Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant