Project 6 - showing error 2 while creating file. Please check the image attached and help me . I am using Oracle VM VirtualBox Manager

@sgt17122001

Are you trying to access the correct filename? Did you create the file before trying to open it?

hello… @sgt17122001 u first create the file ’ sudo nano device_status.py’,…then type the program there…and then save the file and type sudo python3 device_status.py to see if ur program is correct or its occuring any error…
hope it helps you…

I am using correct file name , I did not created file before trying to open it

after typing the program(code) nothing is happening . the screen remain as it is . I am not getting any error nor output

can u send me the screenshot?

everything is ok… just remove the last line “sudo python3 device_status.py”…
and then press ctrl+x
then press “y” as yes below given… and then press enter…and there you type the sudo python3 device_status.py…
try and let me know…

1 Like

@Amrita_dey Thanks a lot. This solved my problem and getting desired results .

u r most welcome … @sgt17122001 …if any query lemme know later…