What is the AS in Python for?

Asked

Viewed 356 times

1

Please someone help me with this. Explaining why, what and how AS works in Python.

1 answer

3


It’s like you’re giving something a nickname, for example except Exception as E, or, import serial as ser.

'Cause sometimes it’s a lot easier for you to call something than having to write its name over and over matplotlib.pyplot every time you work with graphics, it’s much easier to call it 'plt' than having to write it all the time you use it.

  • Thank you for answering me.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.