(a)
>>> str(print())+"One"
# output
'NoneOne'
because print() function has been executed and it returns None
(b)
>>> str(print(“hello” ))+"One"
# output
hello
'NoneOne'
because 'hello' was printed first and then the print() function returned None