I observed that I can run HTML code in python on Sololearn with following code:
why is that so?
It doesn't work on other IDEs.
10/26/2021 4:14:58 PM
sololearns system is linux based. Hence, the 'touch' command. Your os my not be a linux distro
Slick is there a way to run it in windows?
There's no touch in windows but you could use fsutil:
fsutil file createnew filename requiredSize
just sub in the options and use it as a string to feed to os.system()
read about it here: https://www.windows-commandline.com/create-empty-file/
On windows you can use "echo > filename to create files using powershell
Harsha S please stop mentioning me and people in your questions
Send us a message