How to Solve NameError: name 'create_random_transaction' is not defined -- transactions

Solution: Import the 'create_random_transaction' module

To Solve the error, add the following line to the top of your code.

from transactions import create_random_transaction

 

For more information:
Python transactions create_random_transaction