-1

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

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

document.save(y.'docx')
2
  • In your case, what does document indicates? Commented Oct 8, 2019 at 5:29
  • document.save(y+".docx") Commented Oct 8, 2019 at 5:30

1 Answer 1

0

Use this:

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

document.save(y + 'docx')
Sign up to request clarification or add additional context in comments.

2 Comments

Should probably be .docx
Yes, sorry... typo.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.