Keywords
assert
What is ‘assert’ keyword ? what does it do ?
Now consider the following example where we used “AssertionError” to write our logic
Output of our script

seen from Germany
seen from China
seen from United States
seen from China
seen from United States
seen from China
seen from United Kingdom

seen from Germany

seen from United States

seen from United States
seen from Singapore
seen from United Kingdom
seen from China
seen from United States

seen from United States

seen from United States
seen from Brazil
seen from Austria
seen from China
seen from United Kingdom
Keywords
assert
What is ‘assert’ keyword ? what does it do ?
Now consider the following example where we used “AssertionError” to write our logic
Output of our script