2👍
✅
You are not using single quotes for all the keys in your dictionary, so python is using the values of the variables for the names of the keys instead.
Change it to:
return {
'r': review,
'coverPosition': coverPosition,
'scoreMode': scoreMode,
'showLargeHeadings': showLargeHeadings,
'wordsToShow': wordsToShow
}
Source:stackexchange.com