Skip to content

Instantly share code, notes, and snippets.

View PANDATD's full-sized avatar
:octocat:
Python Practics

MR. TEJAS DIXIT PANDATD

:octocat:
Python Practics
View GitHub Profile
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
areaOfcircle(4.0)
areaOftriangle(2.0, 3.0)
@PANDATD
PANDATD / importantFuncation.py
Last active July 31, 2021 15:20
important funcations in python
import functools
# Filter Funcation
_filter = '''The Filter is pythons inbuild funcation,
Which will be use for filter the data for itrables such as list
[Syntax]
filter(funcaion, *itreables)
[Example]
is_positive(a: any):
return a > 0
def lsearch(array:list, search_element:any)->None:
"""
This funcation will help to search
element using linear search algorithm.
>>> lsearch ([134,56,2,78,0],78)
Element is Found at 4th index and 5th position
"""
i = 0
for i in range(len(array)):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
echo "Updating system"
echo "Upgrading system"
echo "Installing neofetch"
sudo apt-get install neofetch -y
neofetch
sudo apt-get install python3-pip -y
echo "Installing some python reqirments"