how to take user input and create a file in python

Solutions on MaxInterview for how to take user input and create a file in python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "how to take user input and create a file in python"
Jorge
25 Nov 2020
1# Deleting a pre existing file : 
2
3import os
4os.remove(โ€œfile.txtโ€)