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

Last updated 1 year, 8 months ago | 646 views

Tags:- Python Django

Django follows a Model-View -Template (MVT) architecture which is a variant of the MVC architecture.  Model: Logical data structure behind the entire app and signified by a database. A model is used in Django to …

Last updated 1 year, 8 months ago | 615 views

Tags:- Django

Windows | Add desktop icon windows 10 1. Right-click on the desktop and click on Personalization   2. Under Personalization > Themes > Related Settings, select Desktop icon settings.   3. Choose the icons you would like to have on your …

Last updated 2 years, 4 months ago | 602 views

Tags:- Windows

Windows | Set path and environment variables in Windows Vista and Windows 7 On the desktop, right-click the Computer icon and select Properties. or Press the  and right-click the Computer option in the Start menu, and select Properties. Click the Advanced System Settings link in the left column. In …

Last updated 1 year, 8 months ago | 591 views

Tags:- Windows

Windows | Set path and environment variables in Windows 2000 and Windows XP On the desktop, right-click the Computer icon and select Properties. or Press the  and right-click the Computer option in the Start menu, and select Properties. In the System Properties window, click the Advanced tab. In the Advanced tab, click …

Last updated 1 year, 8 months ago | 569 views

Tags:- Windows

Python | Monkey Patching In Python, the term monkey patch only refers to dynamic modifications of a class or module at run-time.   # m.py class A: def func(self): print("Hi") import m def monkey(self): print …

Last updated 1 year, 11 months ago | 558 views

Tags:- Python

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 1 year, 8 months ago | 556 views

Tags:- Windows

Python | Iterator | (__iter__ and __next__) Iterators are objects that can be iterated upon. The iterator protocol for Python declares that we must make use of two functions to build an iterator- iter() and next().   …

Last updated 1 year, 11 months ago | 556 views

Tags:- Python

 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 1 year, 8 months ago | 551 views

Tags:- Python Django

Python | Exception Handling Python has many built-in exceptions that are raised when your program encounters an error. Try and Except Statement – Catching Exceptions: Try and except statements are used to catch and handle …

Last updated 1 year, 11 months ago | 548 views

Tags:- Python

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 1 year, 8 months ago | 540 views

Tags:- Python Django

Python | zip() Function Python zip() function returns a zip object, which maps a similar index of multiple containers. It takes an iterable, converts it into an iterator, and aggregates the elements based on the iterable passed. …

Last updated 1 year, 11 months ago | 540 views

Tags:- Python

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

Last updated 1 year, 8 months ago | 527 views

Tags:- Git

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

Last updated 1 year, 8 months ago | 525 views

Tags:- Python Django

Some of the more well-known companies that make use of Django are:’ Instagram Mozilla Firefox Reddit YouTube Disqus Bitbucket Spotify NASA Pinterest Eventbrite, etc.

Last updated 1 year, 11 months ago | 524 views

Tags:- Django