-1

.It says invalid syntax on the ' around the docx.

y = input ("lektion :") 
print(y) 

document.save(y.'docx')
OneCricketeer
  • 151,199
  • 17
  • 111
  • 216
Mocko
  • 29
  • 5

1 Answers1

0

Use this:

y = input ("lektion :") 
print(y) 

document.save(y + 'docx')
OneCricketeer
  • 151,199
  • 17
  • 111
  • 216
Sid
  • 2,118
  • 1
  • 11
  • 27