Skip to content

Instantly share code, notes, and snippets.

View daduam's full-sized avatar

Joseph Ampadu daduam

View GitHub Profile
@daduam
daduam / power.py
Last active January 27, 2021 01:33
Exponent function with recursion
import pytest
def power(a, n):
"""
power(base, exponent)
Returns the result of raising base to the power exponent.
Parameters:
correct = list(input().split())
grades = dict()
while True:
temp = list(input().split())
id = temp[0]
if id == "999":
break
answer = temp[1:]
grade = 0
for i in range(len(correct)):
@daduam
daduam / hello-world.rs
Created January 11, 2021 15:58
Hello, World in a New Language
fn main() {
println!("Hello, World in a New Language");
}