{{ message }}

Instantly share code, notes, and snippets.

🏠
Working from home

# Manshu SharmaSvastikkka

🏠
Working from home
Created Oct 2, 2020 — forked from santisbon/Search my gists.md
How to search gists
View Search my gists.md

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
`user:santisbon`

Find all gists with a .yml extension.
`extension:yml`

Find all gists with HTML files.
`language:html`

Created Sep 5, 2020
View Supernatural.py
 def multiplyList(myList): # Multiply elements one by one result = 1 for x in myList: result = result * int(x) return result def solve(n): c=0
Last active Aug 25, 2020
View Horner rule.py
 def hornerRule(poly,n,x): result=poly[0] for i in range(1,n): result=result*x+poly[i] return result arr=list(map(int,input().split)) x=int(input()) len=len(arr) print(hornerRule(arr,len,x))
Created Aug 23, 2020
 ## Read input as specified in the question. ## Print output as specified in the question. class Node: def __init__(self,data): self.data=data self.next=None def LinkedLists(arr): head=None tail=None
Created Aug 20, 2020
View 013. Resistors in Parallel.py
 p=int(input()) q=int(input()) print((p*q)/(p+q))
Created Aug 20, 2020
View 012. Easy Exponentials.py
 p,q=map(int,input().split()) print(p**q)
Created Aug 20, 2020
View 010. Points per Game.py
 p=int(input()) q=int(input()) print(p/q)
Created Aug 20, 2020
View 009. Hello CodeRams.py
 print("Hello CodeRams")
Created Aug 20, 2020
View 008. N-Dimensional Distance.py
 import math t=int(input()) res=0 for i in range(t): p=int(input()) q=int(input()) res=res+abs((p-q)**2) print(math.sqrt(res))
Created Aug 20, 2020
View 007. Clock Seconds.py
 h=int(input()) m=int(input()) s=int(input()) a=input() if a=="AM": print(3600*h+m*60+s) else: print(3600*(h+12)+m*60+s)
You can’t perform that action at this time.