Select true statements. (select Two): a. Creating a generator in Python is all about defining a normal function, but with a yield statement instead of return. b. If a function contains one or more yield statements it becomes a generator function.
Select true statements. (select Two):
a. Creating a generator in Python is all about defining a normal function, but with a yield statement instead of return.
b. If a function contains one or more yield statements it becomes a generator function.