I'm working through this same course check this out and it will show you how to fix this error here: https://github.com/smartcontractkit/full-blockchain-solidity-course-py/blob/main/chronological-issues-from-video.md
Alternatively you can install Solc first before installing solcx and it will give you the old version of solidity compiler included. so all you ...
Just pack your variables into a memory array. For example, say you have 30 local addresses variables. Instead of:
address addr1 = 0x0000000000000000000000000000000000000001;
address addr2 = 0x0000000000000000000000000000000000000002;
address addr3 = 0x0000000000000000000000000000000000000003;
You can do:
address memory joinedAddresses = new ...