I want to write related to Pytestthis powerful framework allows you to run some test cases. You can use the framework or…
Pytest
In my previous post(Understand Decorator in Python(part1)) , I wrote about the concept of decorators being focused on…
I have been studying with the decorator, and wish to write about it in this post. Python…
As many people have heard about the CHATGPT in these couple of weeks or months, and indeed it’s so powerful…
I would like to share with you how to create a python package or library. You can write a…
Today I would like to share what and how to use __name__ ==’__main__ ‘this function. This is a really…
Share how to ping with multiple IP address
iplist.txt:
8.8.8.88.8.8.8
import os#reading filewith…
Enumerate is a great function in python which is used like a counter.
-Example using without Enumerate
count =0test_list =[‘USA’, ‘China’, ‘Japan’,’Korea’]for i in test_list: count += 1 print(count,””,i)
Note: Python 2
Convert a file into hex format and convert back to decimal and add 1