In this tutorial, we will learn how to remove the kth occurrence of a word in a given list. The list is given. It contains words and most words are repeated. We will create one function to remove the kth occurrence of one word if it is available in the list. If it is not available, it will show one message.
ReadIn this tutorial, I will show you how to find the area and perimeter of a triangle in Python. For calculating both area and perimeter, we need the values of the sides of the triangle. So, the program will take the sides as input from the user and calculate the values.
ReadIn kotlin, we can use the + and - operators to add or subtract multiple collections. The first operand is a collection and the second operand is a collection or an element. It returns one new collection.
ReadBoolean is used to represent a value that is either true or false. Booleans are useful for decision-making statements. Kotlin provides many methods for logical operations, finding the string representation, equality check, hashcode, etc. In this tutorial, we will check these functions with examples :.
ReadPascal's triangle is a triangle where each entry is the sum of the two numbers directly above it. This is a symmetric triangle, i.e. the left side numbers are identical to the right side numbers. Below is a pascal's triangle of height 10 :.
Readconcat() method is used to join two strings. It concatenates one string to the end of another string. This method is defined as below :.
ReadDictionary is used to store key-value pairs. We can sort the items in a dictionary based on the values. In this tutorial, I will show you how to sort a python dictionary based on its values.
ReadIf you have one database, you need one method to update its data. MongoDB provides one really easy update method to update one single or multiple documents. You can also update only one value of a document. In this tutorial, I will show you two different examples to update one single or multiple documents using the update method. Note that this method works on the mongo shell. If you are using any other libraries in your project, the documentation may differ.
ReadThis program will show you how to get the cube sum of first n natural numbers in python. The program will take the value of n as an input from the user, calculate the sum of cube and print it out.
ReadIf you are working with date, you should always get aware of these two terms- ISO and UTC. ISO 8601 is a standard used for date-time representation. The way date is represented, the date separators are not the same for all countries. Using ISO 8601, we can convert all times to a similar format. So, if we store the ISO date on the database, it can be converted and represent as we like on the frontend.
Read