This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*RESUME* | |
*EDNA SAWE* | |
[GitHub](https://github.com/ednasawe) [Website Projects](https://techauthorityorg.wordpress.com/) | |
[Website](https://seed.uno/enterprise-profiles/biopane-energy-company) [Email]([email protected]) | |
[LinkedIn](https://www.linkedin.com/in/sawe-edna-65765baa/) [Twitter]( https://twitter.com/CheptooSawe) | |
[Website](https://cedna198.wixsite.com/biopaneenergy) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Activity 1 (sort_playlist.py) | |
def lowest(song): | |
sorted_playlist = [] | |
min = song[0] | |
for i in song: | |
if i[1] < min[1]: | |
min = i | |
return min | |
def sort_playlist(playlist): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def number_range(list_): | |
if len(list_) == 1: | |
return [list_[0]] | |
smallest = list_[0] | |
largest = list_[0] | |
for number in list_: | |
if number > largest: | |
largest = number | |
elif number < smallest: | |
smallest = number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def in_words(int) | |
numbers_to_name = { | |
1000000000000 => "trillion", | |
1000000000 => "billion", | |
1000000 => "milliom", | |
1000 => "thousand", | |
100 => "hundred", | |
90 => "ninety", | |
80 => "eighty", | |
70 => "seventy", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def squareroot(n, diff) | |
gues=refine(1,n) | |
while(((gues*gues)-n)>diff) | |
gues=refine(gues, n) | |
end | |
gues | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> def prdarray (arr) | |
[1] pry(main)* initial = 1 | |
[1] pry(main)* arr.each do |i| | |
[1] pry(main)* initial=initial*i | |
[1] pry(main)* | |
[1] pry(main)* if (i=0) | |
[1] pry(main)* return puts "Elements in array must be non zero" | |
[1] pry(main)* end | |
[1] pry(main)* end | |
[1] pry(main)* new_arr=[] |