Print Options

Font size:

← Back to notecard set|Easy Notecards home page

To print: Ctrl+PPrint as notecards

Selenium

1.

What does __str__do?

It's used if you want to print the string that the object will return when you want to print the object instead of explicitly calling the function that's gonna return that string

2.

what does the keyword pass do?

When you don't want to write anything in the body of the class or function when you just want to initialize it just like putting None or an empty string in a variable

3.

what does the keyword Super() do?

it allows you to access the parent class to inherit its methods or attributes

4.

What does __delattr__do? why do we use it?

no data
5.

What does __dir__do? why do we use it?

no data
6.

What does __dict__do? why do we use it?

no data
7.

what about assert keyword?

no data
8.

What does __enter__ and __exit__do? why do we use it? and their parameters

no data
9.

format()? why do we use it? and their parameters

no data
10.

comparison operators

no data