"Create a text file in the C:\Users\user folder with the content "Hello, World!""
Python script
"import os
folder_path = "C:\Users\user"
file_name = "my_file.txt"
file_path = os.path.join(folder_path, file_name)
if not os.path.exists(folder_path):
os.makedirs(folder_path)
with open(file_path, 'w') as f:
f.write("Hello, World!")"
Generate functional Python scripts for Windows using only built-in libraries.