Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

Let's say I want to create a file exam.py, I tried the following code:

edit exam.py

But it's not working. Can anyone suggest to me an alternative code that will help me to create a new python file, using the cmd line in Windows? 

1 Answer

0 votes
by (26.4k points)

Try following code:

TYPE CON>exam.py

If you want to terminate, click Ctrl+C or Ctrl+Z, Enter (Ctrl+z=EOF)

Want to learn more about Python? Come and Join:- python certification course

For more details, do check out..

Related questions

Browse Categories

...