Python | Break, Continue, and Pass Break: The break statement terminates the loop immediately and the control flows to the statement after the body of the loop. Continue: The continue statement skips the current iteration of the statement, …

Last updated 3 years, 10 months ago | 1489 views

Tags:- Python

Python | Print String N times >>> s = 'Python' >>> n = 5 >>> print(s * n) PythonPythonPythonPythonPython  

Last updated 3 years, 7 months ago | 1473 views

Tags:- Python Django

Git | Undo the most recent local commits Bellow command is used to reset the last local commit. git reset HEAD~        

Last updated 3 years, 8 months ago | 1466 views

Tags:- Git

Windows | Set path and environment variables in Windows 11 Press the + to access the Power User Task Menu. In the Power User Task Menu, select the System option. In the System window, scroll to the bottom and click the About option. In the System …

Last updated 3 years, 8 months ago | 1464 views

Tags:- Windows

Python | Reversing a String >>> x = 'PythonWorld' >>> print(x[: : -1]) dlroWnohtyP  

Last updated 3 years, 7 months ago | 1464 views

Tags:- Python Django

Python | Self Self is used to represent the instance of the class. With this keyword, you can access the attributes and methods of the class in python. It binds the attributes with the given arguments.   …

Last updated 3 years, 10 months ago | 1458 views

Tags:- Python

Python | Join all items of a list to convert into a single string >>> x = ["Python", "Online", "Training"] >>> print(" ".join(x)) Python Online Training  

Last updated 3 years, 7 months ago | 1452 views

Tags:- Python Django

Django | Features  Features available in Django are Optimized for SEO Extremely fast A loaded framework that features authentications, content administrations and RSS feeds Exceptionally scalable to meet the heaviest traffic demand Highly secure Versatility, …

Last updated 3 years, 10 months ago | 1449 views

Tags:- Django

Using the query method we can print SQL query from the queryset post = Post.objects.all() print(post.query)  

Last updated 3 years, 10 months ago | 1444 views

Tags:- Django

 Python | In-place swapping of two numbers >>> a, b = 10, 20 >>> print(a, b) 10 20 >>> a, b = b, a >>> print(a, b) 20 10  

Last updated 3 years, 7 months ago | 1432 views

Tags:- Python Django

Python | Return multiple values from functions >>> def A(): return 2, 3, 4 >>> a, b, c = A() >>> print(a, b, c) 2 3 4  

Last updated 3 years, 7 months ago | 1423 views

Tags:- Python Django

Windows | Set path and environment variables in Windows 8 Press the + to access the Power User Task Menu Now, select the System option. Click the Advanced System Settings link in the left column. In the Advanced tab, click the  button. In the Environment Variables window highlight …

Last updated 3 years, 8 months ago | 1417 views

Tags:- Windows

Once your BigQuery table is created, the next step is to insert data. Using Python and the BigQuery client library, you can insert rows programmatically—perfect for ETL pipelines, data automation, or ingestion workflows. In this …

Last updated 11 months, 1 week ago | 1402 views

Tags:- Python BigQuery

Python | vars(), dir() and help()  The vars() function returns the __dict__ attribute of an object. The dir() function returns all properties and methods of the specified object, without the values. The help() function is used to display …

Last updated 3 years, 10 months ago | 1399 views

Tags:- Python

Python has a rich set of built-in exceptions designed to handle various types of runtime errors. These exceptions help you detect and respond to unexpected events during program execution. In this guide, you'll learn: What …

Last updated 11 months ago | 1387 views

Tags:- Python