Import sys, codecs not required? | Sololearn: Learn to code for FREE!

+7

Import sys, codecs not required?

Recently, I have noticed codes using codecs have not been importing sys, codecs and other bits and pieces of script, yet are still functional. What has changed? Is this part of Python 3.8 or something else. Example attached https://code.sololearn.com/c7X2WAze8PwZ/?ref=app

11/8/2019 8:00:04 AM

Rik Wittkopp

7 Answers

New Answer

+2

Because of Linux support may be! SL mobile switched it server to Linux recently, previously it was running on Windows, although SL website is still running on Windows server and Python 3.7 https://code.sololearn.com/cNYrJgKiu93y/?ref=app https://code.sololearn.com/c5XcL497pu4C/?ref=app

+5

Rik, you are right, something might have changed. I tried a code file that created an error few weeks ago. It does run properly now without using codecs.

+4

OR!ON πŸ›‘οΈ how did u know?

+2

OR!ON πŸ›‘οΈ Thanks.

+2

OR!ON πŸ›‘οΈ Great codes you have attached. πŸ‘

+2

@Black Jesus check the code -> Platform Information πŸ™‚πŸ‘†

+1

Lothar Hi. I have tried a few google enquiries but have not found anything which makes sense. Hoping someone might know