A simple (and correct!) way to write what you want:
score = int(input('Please enter your score for test ' + str(y) + ': '))
More Related Contents:
- TypeError: method() takes 1 positional argument but 2 were given
- Determine function name from within that function (without using traceback)
- Print multiple arguments in Python
- How to catch and print the full exception traceback without halting/exiting the program?
- Why does using `arg=None` fix Python’s mutable default argument issue?
- How to expand a list to function arguments in Python [duplicate]
- Python: Passing variables between functions
- Best way to check function arguments? [closed]
- How to pass an argument to event handler in tkinter?
- How do I define a function with optional arguments?
- Python function as a function argument?
- Overloaded functions in Python
- Can one partially apply the second argument of a function that takes no keyword arguments?
- In Python, can I call the main() of an imported module?
- Using map() function with keyword arguments
- What is a maximum number of arguments in a Python function?
- Why do I get a TypeError that says “takes no arguments (1 given)”? [duplicate]
- Python Class Based Decorator with parameters that can decorate a method or a function
- How to have multiple conditions for one if statement in python [duplicate]
- Which exception should I raise on bad/illegal argument combinations in Python?
- Python: Getting a traceback from a multiprocessing.Process
- How can I more easily suppress previous exceptions when I raise my own exception in response?
- Is it safe to rely on Python function arguments evaluation order? [duplicate]
- Passing argument from Parent function to nested function Python
- Get a list/tuple/dict of the arguments passed to a function?
- How does using a function (callback) as an argument to another function work in Python?
- Read from File, or STDIN
- Converting list to *args when calling function [duplicate]
- Specifying arguments with spaces for running a python script
- argparse argument order