Snippets Collections
n=5
s=0
for i in range(1,n+1):
    # adding cube sum using pow() function
    s=s+pow(i,3)
print(s)   
def prime(x, y):
    prime_list = []
    for i in range(x, y):
        if i == 0 or i == 1:
            continue
        else:
            for j in range(2, int(i/2)+1):
                if i % j == 0:
                    break
            else:
                prime_list.append(i)
    return prime_list
 starting_range = 2
ending_range = 7
lst = prime(starting_range, ending_range)
if len(lst) == 0:
    print("There are no prime numbers in this range")
else:
    print("The prime numbers in this range are: ", lst)
def findArea(r):
    PI = 3.142
    return PI * (r*r);
 
# Driver method
print("Area is %.6f" % findArea(5));
def power(x, y):
     
    if y == 0:
        return 1
    if y % 2 == 0:
        return power(x, y // 2) * power(x, y // 2)
         
    return x * power(x, y // 2) * power(x, y // 2)
 
def order(x):
 
    # Variable to store of the number
    n = 0
    while (x != 0):
        n = n + 1
        x = x // 10
         
    return n
 
def isArmstrong(x):
     
    n = order(x)
    temp = x
    sum1 = 0
     
    while (temp != 0):
        r = temp % 10
        sum1 = sum1 + power(r, n)
        temp = temp // 10
 
    # If condition satisfies
    return (sum1 == x)
 
# Driver code
x = 153
print(isArmstrong(x))
 
x = 1253
print(isArmstrong(x))
import math 
 
def isPerfectSquare(x):
    s = int(math.sqrt(x))
    return s*s == x
 
 
def isFibonacci(n):
 
    # n is Fibonacci if one of 5*n*n + 4 or 5*n*n - 4 or both
    # is a perfect square
    return isPerfectSquare(5*n*n + 4) or isPerfectSquare(5*n*n - 4)
 
 for i in range(1, 11):
    if (isFibonacci(i) == True):
        print(i, "is a Fibonacci Number")
    else:
        print(i, "is a not Fibonacci Number ")
star

Wed Dec 21 2022 07:16:15 GMT+0000 (Coordinated Universal Time) https://www.matlabhomeworkhelper.com/matlab-homework-helper/

#matlabhomeworkhelp #onlinehomeworkhelp #education #homework #students #study #matlabassignmenthelp #tutor
star

Wed Dec 14 2022 09:53:44 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/take-my-engineering-exam.html

#education #study #studytips #takemy engineering exam #university
star

Wed Dec 14 2022 09:53:42 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/take-my-nursing-exam.html

#education #study #studytips #takemy nursing exam #university
star

Wed Dec 14 2022 09:53:40 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/take-my-math-exam.html

#education #study #studytips #takemy math exam #university
star

Wed Dec 14 2022 09:53:38 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/physics-exam-help.html

#education #study #studytips #takemy physics exam #university
star

Wed Dec 14 2022 09:53:31 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/take-my-accounting-exam.html

#education #study #studytips #takemy accounting exam #university
star

Wed Dec 14 2022 09:50:03 GMT+0000 (Coordinated Universal Time) https://www.liveexamhelper.com/

#education #study #online #onlineexamhelp #examhelp #university #liveexamhelp
star

Fri Nov 25 2022 12:10:45 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/solidworks-project-helpers/

#education #assignment #homework #student #study #university #python #programming
star

Fri Nov 25 2022 12:10:42 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/do-my-solidworks-assignment/

#education #assignment #homework #student #study #university #python #programming
star

Fri Nov 25 2022 12:10:38 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/do-my-solidworks-assignment/

#education #assignment #homework #student #study #university #python #programming
star

Fri Nov 25 2022 12:10:32 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/solidworks-homework-help/

#education #assignment #homework #student #study #university #python #programming
star

Fri Nov 25 2022 12:04:20 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/

#education #assignment #homework #student #study #university #python #programming
star

Fri Nov 25 2022 12:01:06 GMT+0000 (Coordinated Universal Time) https://www.solidworksassignmenthelp.com/

#education #assignment #homework #student #study #university #solidworks #soldiworksassignmenthelp
star

Sat Oct 29 2022 09:43:10 GMT+0000 (Coordinated Universal Time) https://www.statisticshomeworkhelper.com/excel-assignment/

#statisticshomeworkhelp #onlinehomeworkhelp #education #homework #study
star

Fri Oct 28 2022 11:56:38 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/property-law

#propertylawhomeworkhelp #education #homework #study #onlinehomeworkhelp #students
star

Fri Oct 28 2022 11:55:03 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/international-law

#internationallawhomeworkhelp #education #homework #study #students #lawhomeworkhelp #onlinehomeworkhelp
star

Fri Oct 28 2022 11:53:30 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/human-rights-law

#humanrightshomeworkhelp #lawhomeworkhelp #onlinehomeworkhelp #education #study #homework
star

Fri Oct 28 2022 11:52:08 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/employment-law

#lawhomeworkhelp #education #homework #study #students
star

Fri Oct 28 2022 11:50:20 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/civil-law

#civillawhomeworkhelp #education #homework #study #students #lawhomeworkhelp #onlinehomeworkhelp
star

Fri Oct 28 2022 11:48:28 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/administrative-law

#lawhomeworkhelp #education #onlinehomeworkhelp #study #administrativelawhomeworkhelp #homework
star

Fri Oct 28 2022 11:45:02 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/commercial-law

#lawhomeworkhelp #onlinehomeworkhelp #education #homework #students #study
star

Fri Oct 28 2022 11:40:55 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/corporate-law

#lawhomeworkhelp #education #study #homework #students
star

Fri Oct 28 2022 11:37:02 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/migration-law

#lawhomeworkhelp #education #homework #study #students
star

Fri Oct 28 2022 11:35:31 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/criminal-law

#lawhomeworkhelp #education #homework #study #students
star

Fri Oct 28 2022 11:33:14 GMT+0000 (Coordinated Universal Time) https://www.lawhomeworkhelp.com/contract-law

#lawhomeworkhelp #onlinehomeworkhelp #education #homework #students #study

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension