I am learning Python Programming from Full Circle Magazine. Can anybody correct this program as it is not working.
#!/usr/bin/env python strng = 'The time has come' pos = strng.find('time')
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
I guess you are using Ubuntu and are trying to learn python. Here is a step by step guide on how to get your example working.
The sort of output you are supposed to see is
If you want to be able to run this as a file, you need to proceed as follows.
Let us know if there's anything else. If your problem is related to python rather than to not understanding how to use python in ubuntu, ask your question on stackoverflow.