Hello fellow coders!
I recently completed the Python course (woohoo!), and it felt pretty good!
However, I felt like not all my questions were answered in the last topic, that otherwise dealt with writing to and from txt files.
What i want to know is this: how can i create my own scripts (outside of the code academy environment) and execute them?
I am not a computer science student (biomedicine rather, so coding is not within my comfort zone), but previously i had a introductory course in Perl programming at my university.
I learned Perl 5 (of course..), but also how to write scripts, and what to type in the "Strawberry Perl" command terminal to make it work.
Something like this:
Perl bin/somescript.pl > data/some_output.txt
I was wondering if you can do something similar with Python - I'm sure you can, but so far I haven't been able to figure it out.
I downloaded "Python" for windowns through their website, but it doesn't appear to function quite like Strawberry perl (that is a command promt window like "cmd"). Does this mean i should only use cmd to execute my scripts?
One last thing: in all my Perl scripts i start by typing:
I guess you need a similar "code" to tell notepad++ you work with python right? and to tell the interpreter you are working with python? What should i type?
if answer == True:
[tab] Jonesomg = "happy"