Hey guys! what's up! I am back again with an amazing trick. I this blog I am going to say you that how you can create the Green tick test passed terminal animation in Python. This is very simple!! So Let's create it!
Here is the video From Which I was Inspired!
This video's credit goes to Mansoor Codes.
Process
First create a Main.py file, which Means a Python file with any name. Then Import Time module, define a class and then Print a Statement with 0.5-second delay, Then save and Run Run!!!
Code:-
import timeclass vcolors:GREEN = '\033[92m'ENDC = '\033[1m'time.sleep(0.5)print(vcolors.GREEN + '✓ Test 1 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 2 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 3 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 4 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 5 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 6 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 7 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 8 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 9 passed' + vcolors.ENDC)time.sleep(0.5)print(vcolors.GREEN + '✓ Test 10 passed' + vcolors.ENDC) {codeBox}
Here is the Tick text:-
✓ {codeBox}
So in the 'vcolour' class, there are two things one is GREEN and one is ENDC. GREEN is containing a color value but not in RGB!! Then we are just printing the statement with GREEN and ENDC!! That's it You are done!
Seen friend how easy it was to create this type of animation!! hope you liked it. Then please click on the Red Subscribe Button on My Youtube Channel, Please! Then take care friends to see you in the new post!
Visit my Channel:-
Click me to Visit my channel!!
Goodbye!!!😊
0 Comments