Compare commits

...

6 Commits

Author SHA1 Message Date
Haaris
fb34f1574d Merge 9617317345 into 8557d4f3d8 2023-07-25 18:48:08 +08:00
Julien Le Coupanec
8557d4f3d8 Merge pull request #337 from phaneendra24/adding-js-arrayMethod
adding the at() method
2023-07-11 12:20:48 +02:00
phaneendra
f8d75a7ccf adding the at method 2023-07-07 16:49:20 +05:30
Haaris
9617317345 added: Python Comments 2023-01-14 21:49:42 +05:30
Haaris
087d5d45a6 Update python.md 2023-01-14 21:48:23 +05:30
Haaris
96f9b643f4 added: Python Comments 2023-01-14 21:42:41 +05:30
2 changed files with 22 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ array.splice(start, deleteCount, item1, item2, ...) // Adds and/or removes elem
arr.unshift([element1[, ...[, elementN]]]) // Adds one or more elements to the front of an array and returns the new length of the array.
// Instance: accessor methods
arr.at(index) // Returns the element at the specified index in the array.
arr.concat(value1[, value2[, ...[, valueN]]]) // Returns a new array comprised of this array joined with other array(s) and/or value(s).
arr.includes(searchElement, fromIndex) // Determines whether an array contains a certain element, returning true or false as appropriate.
arr.indexOf(searchElement[, fromIndex]) // Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.

View File

@@ -125,6 +125,27 @@
| \|= | bitwise or and store|
| , | separator as in ( y=x,z=++x )|
<br>
## Comments
- Comments are very helpful to explain a Python code.
- They are used to make the code more readable.
- They never get executed.
- Comments start with # in Python.
```python
#This is a comment
print("Welcome!")
```
<br>
### Basic Data Structures
### List