Skip to content
← Back to Community
Snippets
Profile icon
keilabcs

How to use code snippets stored in .txt in repl with NLP?

Answered by CodeLongAndPros [earned 5 cycles]
View Answer
Voters
Profile icon
keilabcs
Comments
hotnewtop
Profile icon
CodeLongAndPros

I would think you would read the code in as a String, and pass it to exec().

I can't give particulars because I use Python and Java, but you would need to make sure what namespace you are using.

Profile icon
postermorison

Hello. In programming, a lot of time is devoted to code optimization. From different points of view. Readability, execution speed, quality of structural organization.Tle Apps can help you understand what it is and how it works. I found a lot of useful information on their website.

Profile icon
AdCharity

those aren't txt files?

Profile icon
SixBeeps

Neuro-linguistic programming?