how do i easily use my code? - TechRepublic
Question
December 8, 2020 at 10:52 AM
omerin

how do i easily use my code?

by omerin . Updated 5 years, 5 months ago

hello everybody!
I’m a mechanical engineer. during my degree i took an intro to cs in python and loved it and i even sometime use it at work in analyzing technical data. the problem is that the way we learned to actually use the code is very clumsy. for example i wrote a code that receives the data with the input function, and in order to use it i need to make sure the txt file and the py file are in the same folder, go through the terminal, enter the folder directory and write: python “code.py” <"in.txt">“out.txt”. not to bad but i would love to know faster friendlier methods that i can use and give others at work to use.
thanks a lot!

All Comments