Question: In the python programing language, how do I define a keyword to perform a certain action within a program? For instance, if I want to

In the python programing language, how do I define a keyword to perform a certain action within a program?

For instance, if I want to read an input.txt that contains: -------------------------- foobar = print "Hey guys"

foobar foobar --------------------------

And I need the output to be: -------------------------- Hey guys Hey Guys --------------------------

How is this implemented?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!