Can we open any .py file and able to alter its code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can we open any .py file and able to alter its code?

My question was if its posdible to alter multiple code from single one?!?

24th May 2017, 7:44 AM
Priyabrata Biswas
Priyabrata Biswas - avatar
5 Answers
+ 4
Yes, it's possible. You can even run such a program :) Take a look: https://code.sololearn.com/c5f76DBYhYSO/?ref=app
24th May 2017, 1:08 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
yeah. in pc you can edit the code using IDLE or notepad++... in phone you use a text editor...
3rd Jun 2017, 3:12 PM
Ali Abolhassanzadeh Mahani
Ali Abolhassanzadeh Mahani - avatar
0
If you have a .py file, try to right click on it and look for an option which says "Edit with IDLE" or open that file with whatever IDE you are using.
24th May 2017, 10:04 AM
Aarish Mirza
Aarish Mirza - avatar
0
my question was if I'm able to open .py file with open() function in write mode and then able to change the code!!!!!
24th May 2017, 10:10 AM
Priyabrata Biswas
Priyabrata Biswas - avatar
0
yes, it is possible to edit Python source files with Python programs. I'm pretty sure this is not the entire question you meant to ask.
24th May 2017, 10:21 AM
Venkatesh Pitta
Venkatesh Pitta - avatar