Q: Write a program using class methods to accept coordinates as a pair of tuples and return the slope and distance of the line. Q: Scrap website's all h1 tag text , split with white space and store them in a list and print the list . Q: Scrap meta tag with name keywords from … Continue reading Daily Practice Questions(PYTHON)
Tag: FUNCTION
enumerate() function in python
There are many situations where we'll need to iterate over multiple lists in tandem, such as this one: In the example above, we have two lists. The second list describes the viciousness of the animals in the first list. A Dog has a viciousness level of 1, and a SuperLion has a viciousness level of 10. We want to retrieve the position of the item in animals the loop … Continue reading enumerate() function in python
FUNCTION IN PYTHON
Functions are block of codes that are designed to perform specific task .In this chapter you will study everything about function. If you have to perform a task multiple times throughout, so instead of writing code again and again you can define a function for this task and can call that function whenever we want … Continue reading FUNCTION IN PYTHON


