Oct-22-2019, 12:19 AM
(This post was last modified: Oct-22-2019, 01:13 AM by ichabod801.)
import random print('You have rolled: ' + random.randint(1, 6))what is wrong with this code?
Output:Traceback (most recent call last):
File "C:\Users\brand\OneDrive\Desktop\Python\throwDie.py", line 2, in <module>
print('You have rolled: ' + random.randint(1, 6))
TypeError: can only concatenate str (not "int") to str