I need to create a file with the name provided by the user as input. For example, If the user-provided value hello
then the file name should be hello.txt
, here is a sample code to create a new file.
import os
recipeFileName = input()
currentRecipe = open("fileName.txt", "x")