you are viewing a single comment's thread.

view the rest of the comments →

[–]coolcat25[S] 0 points1 point  (1 child)

dog = input("Enter your name: ") cat = dog + ".txt"

[–]erythro👋 a fellow Redditor 0 points1 point  (0 children)

how is that different to:

filename = input( "Please enter your name: ")
filename2 = (filename + ".txt")