I'm trying to output the following two lines of text:
The city with the most contracts is:
Chicago (2500 contracts)
this is the code I'm using:
a = 'Chicago'
b = 2500
print('The city with the most contracts is:')
print(a, b, 'contracts)')
the current output is:
The city with the most contracts is:
Chicago 2500 contracts)
How can I add a parenthesis before the number 2500?
I tried adding the parenthesis as a string, as in:
print('The city with the most contracts is:')
print(a, '(', b, 'contracts)')
but it adds an unwanted space between the parenthesis and the number 2500, looks like this:
The city with the most contracts is:
Chicago ( 2500 contracts)