Sobes.tech
Intern — Junior

Are you familiar with the Python programming language and can you give examples of its use?

sobes.tech AI

Answer from AI

Yes, I am familiar with Python and have used it for test automation and scripting.

Example of using Python for a simple test with the unittest library:

import unittest

def add(a, b):
    return a + b

class TestAddFunction(unittest.TestCase):
    def test_add_positive(self):
        self.assertEqual(add(2, 3), 5)

    def test_add_negative(self):
        self.assertEqual(add(-1, -1), -2)

if __name__ == '__main__':
    unittest.main()

I also frequently used Python for writing scripts that help automate routine tasks, such as parsing logs or interacting with APIs.

Are you familiar with the Python programming language… - sobes.tech