+ 2

I have python on my computer! ( one question )

For example I want to do that ---> def f(1, i): 1.acquire() try: print('hello world', i) finally: 1.release( if __name__ == '__main__': 1ock = Lock() For num in range(10): Process(target=f, args=(lock, num) ). start() i can't leave it blank as soon as i start telling me syntax error each other ... i mean if i do something simple print ("Hello world") it just comes out without syntax error etc i want someone to help me if i can .. Thanks very much, happy new year!!

13th Jan 2020, 12:13 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
11 ответов
+ 1
You do have a lot of errors in the code you wrote. Check out this code: https://code.sololearn.com/cFbx308dfrm6/?ref=app
13th Jan 2020, 12:26 PM
Danigamy
Danigamy - avatar
+ 1
Thank youu, I downloaded python 3.8 to learn something.. But the problem is that, when I write anything for example the thing that you were send to me. I wrote it and in the last when I press enter (num)).start() ) it shows me ( ... ) I don't know what to do.. If you know something please tell me.. Thank you have a good day!! https://prnt.sc/qn1x9k ( I done it now from Qpython3, in my computer the same as the screenshot I send you..)
13th Jan 2020, 1:45 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
13th Jan 2020, 1:53 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
+ 1
Oh thank you very much!! I appreciate it!! But in computer what I can do?
13th Jan 2020, 1:58 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
+ 1
In the computer is like this --> https://prnt.sc/qn24wa
13th Jan 2020, 2:00 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
+ 1
But when I do this in computer is alright https://prnt.sc/qn25wl..
13th Jan 2020, 2:01 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
+ 1
LOLLL, dude thank you so muchhhh!!! Thankss man happy new year!!!
13th Jan 2020, 2:20 PM
Μπογιαντζής Δημήτρης
Μπογιαντζής Δημήτρης - avatar
0
Μπογιαντζής Δημήτρης it would be useful if you can manage to send screenshots of what you did on your pc
13th Jan 2020, 1:47 PM
Danigamy
Danigamy - avatar
0
I got it. You are running it in the console of android qpython. What you need to do is open "editor" in qpython instead of "console". Write the code in the editor, then save and run it.
13th Jan 2020, 1:53 PM
Danigamy
Danigamy - avatar
0
On a computer you can use the IDLE that comes with python installation. On windows you can use the search bar on the bottom left of your desktop and search "python idle" or "idle". You can open the idle and write code in similar way to qpython editor.
13th Jan 2020, 2:04 PM
Danigamy
Danigamy - avatar
0
Μπογιαντζής Δημήτρης you are welcome! Happy new year to you too!
13th Jan 2020, 2:21 PM
Danigamy
Danigamy - avatar