Sep-21-2019, 03:42 PM
Well no, the commented out code doesn't make any sense, does it?
str1
on line 7 is a tuple of three values and on line 8, that's used in the f-string, so you'll be printing that tuple. On line 11, the string that's displayed is 'dangerous'
and the colour and other things are arguments to the function. Why would you think you'd put the arguments to the function inside the string you want to print (as you've done in line 7)?