Tag: keyword
C++11 / C++14 : ‘delete’ keyword and deleted functions with Use Cases | Examples
In this article we will discuss how to use delete keyword with functions and its use cases. Deleting Functions using ‘delete’ keyword In C++11 a new feature of keyword delete is introduced. Now we can apply the delete keyword to functions to make them uncallable. void someFunction() = delete ; Its practical use cases are, …
C++11 / C++14 : ‘delete’ keyword and deleted functions with Use Cases | ExamplesRead More
Python : Yield Keyword & Generators explained with examples
In this article we will discuss what’s the use of yield keyword, What are generators and how to Iterate over Generator objects. Yield Keyword In Python inside a function instead of using return keyword, we can use yield keyword to return the value. But unlike return keyword, the yield keyword do not terminates the function, …
Python : Yield Keyword & Generators explained with examplesRead More
Python – continue keyword and loops
In this article, we will discuss the syntax and usage of the ‘continue’ keyword. We will also cover the examples of continue keyword in both while loop and for loop. In python, a ‘continue’ statement inside a loop can make the control jump back to the starting of the loop. If the interpreter encounters a …
Python: break keyword – Explained with examples
In this article, we will discuss how to use the break keyword in python to break the flow of loops. We will also cover examples of while loop and for loop with a break statement. “break” statement in python is useful to break the flow of a loop abruptly i.e. It can force a while …
What is “yield” keyword in Python? – Complete Guide
In this python tutorial, you will learn about yield keyword. Like, what does yield keyword do in Python and why do we need it? Agenda What is yield? Usage of the return keyword Usage of the “yield” keyword Using yield with list data structure Using yield with tuple data structure Advantages of the yield keyword …
What is “yield” keyword in Python? – Complete GuideRead More