Skip to content

Instantly share code, notes, and snippets.

View mekdie's full-sized avatar

Mekdie - McDony Lee mekdie

View GitHub Profile
@mekdie
mekdie / bootcampQues.py
Created October 23, 2019 10:30
Mcdony_PythonCode
arr = input("Give a list of integer seperated by a comma (ex: 1,2,3,4,5): ")
arr = arr.split(",")
for i in range (len(arr)):
arr[i] = int(arr[i])
print("List of pairs whose product is even")
for i in range (0, len(arr)):
for j in range (i + 1, len(arr)):
check = arr[i]*arr[j]
if (check % 2 == 0):
@mekdie
mekdie / pokemon-types-color.css
Last active January 7, 2023 15:06
A simple CSS file consists of pokemon type (as class name) with its color hex code
.normal {
background-color: #aab09f;
}
.fire {
background-color: #ee8130;
}
.fighting {
background-color: #cb5f48;
}
.water {
@mekdie
mekdie / pokemon-types-color.js
Last active January 7, 2023 15:05
A simple js file consists of pokemon type (as object) with its color hex code
const colorTypesObj = {
normal: "#aab09f",
fire: "#ee8130",
fighting: "#cb5f48",
water: "#6390f0",
poison: "#a33ea1",
electric: "#f7d02c",
ground: "#e2bf65",
grass: "#7ac74c",
flying: "#7da6de",