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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Write a program that asks the user how many Fibonnaci numbers to generate and | |
then generates them. Take this opportunity to think about how you can use | |
functions. Make sure to ask the user to enter the number of numbers in the | |
sequence to generate.(Hint: The Fibonnaci seqence is a sequence of numbers | |
where the next number in the sequence is the sum of the previous two numbers | |
in the sequence. The sequence looks like this: 1, 1, 2, 3, 5, 8, 13, …) |
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
# -*- coding: utf-8 -*- | |
""" | |
Write a program (function!) that takes a list and returns a new list that | |
contains all the elements of the first list minus all the duplicates. | |
Extras: | |
Write two different functions to do this - one using a loop and constructing a | |
list, and another using sets. | |
Go back and do Exercise 5 using sets, and write the solution for that in a |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Write a program (using functions!) that asks the user for a long string | |
containing multiple words. Print back to the user the same string, except with | |
the words in backwards order. For example, say I type the string: | |
My name is Michele | |
Then I would see the string: |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Jul 27 15:15:31 2017 | |
@author: Jeff Garcia | |
Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays | |
(using input), compare them, print out a message of congratulations to the | |
winner, and ask if the players want to start a new game) |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Sep 27 14:03:28 2018 | |
@author: jeffrey.garcia | |
""" | |
import wx | |
import pandas as pd | |
import os |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Jun 8 13:57:08 2018 | |
@author: jeffrey.garcia | |
""" | |
import pandas as pd | |
import os | |
import inspect; os.path |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 18 09:05:18 2018 | |
@author: jeffrey.garcia | |
""" | |
import pandas as pd | |
import os | |
import inspect; os.path |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Apr 18 11:56:27 2018 | |
@author: jeffrey.garcia | |
""" | |
import pandas as pd | |
import numpy as np | |
import csv |