Can you help me ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
7 Answers
+ 5
please rephrase the question its not clear if you want to read and write or you want to copy from file : go through full series: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2445/?ref=app https://code.sololearn.com/cF4LQDQ15NbD/?ref=app edit: code edited 10 mins
16th Apr 2019, 11:15 AM
Daljeet Singh
Daljeet Singh - avatar
+ 5
Ninofox 078 woof๐Ÿ˜ฅ.. at last SL wins over SO ๐Ÿ˜‚ and you can ping someone by typing @ and sl will show you choices hapyy coding to all!
16th Apr 2019, 11:39 AM
Daljeet Singh
Daljeet Singh - avatar
+ 4
Ninofox 078 check my earlier posted code again I have updated
16th Apr 2019, 11:32 AM
Daljeet Singh
Daljeet Singh - avatar
+ 1
For Daljeet Singh and ~swim~, I want copy the text in document on my code. Again Thank for your help !
16th Apr 2019, 11:18 AM
Ninofox 078
Ninofox 078 - avatar
+ 1
~swim~ Exactly
16th Apr 2019, 11:29 AM
Ninofox 078
Ninofox 078 - avatar
+ 1
Okay Thank Daljeet Singh
16th Apr 2019, 11:35 AM
Ninofox 078
Ninofox 078 - avatar
0
It sounds to me as if you want to run code that you have written in a text file. You have the functions eval and exec to read a string (and an opened txt file is a string) as code. I'm sure there was a part in the tutorial here about that... or wasn't there?
16th Apr 2019, 11:21 AM
HonFu
HonFu - avatar