-1

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

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

document.save(y.'docx')
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Mocko
  • 29
  • 5

1 Answers1

0

Use this:

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

document.save(y + 'docx')
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Sid
  • 2,174
  • 1
  • 13
  • 29