Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
230a557
Update Module1.md
CSI-Daniel-Cintron Aug 18, 2021
e97c668
Update Module1.md
CSI-Daniel-Cintron Aug 18, 2021
62ee171
Update Module1.md
CSI-Daniel-Cintron Aug 18, 2021
9e40831
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Aug 24, 2021
4e26370
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Aug 26, 2021
5534517
Create Daniel Cintrón.PNG
CSI-Daniel-Cintron Aug 26, 2021
370f55e
Update Module2.md
CSI-Daniel-Cintron Aug 26, 2021
a5aaf31
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 1, 2021
81b9253
Initicials
CSI-Daniel-Cintron Sep 1, 2021
07b9d68
Update Module3.md
CSI-Daniel-Cintron Sep 3, 2021
6dec163
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 10, 2021
6d00930
module4.py
CSI-Daniel-Cintron Sep 10, 2021
67128d5
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 14, 2021
3692b41
module 4 py and md
CSI-Daniel-Cintron Sep 14, 2021
40f9eb6
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Sep 14, 2021
edaebb3
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 20, 2021
acda499
Calculator
CSI-Daniel-Cintron Sep 20, 2021
5e9b7e8
Ticketera
CSI-Daniel-Cintron Sep 24, 2021
fd93e88
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 28, 2021
4c18839
Space
CSI-Daniel-Cintron Sep 28, 2021
73fc679
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Sep 30, 2021
e87138e
Jump
CSI-Daniel-Cintron Sep 30, 2021
b851602
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Oct 8, 2021
dd6cec9
Rock vs Paper vs Scissors
CSI-Daniel-Cintron Oct 8, 2021
46ca936
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Oct 8, 2021
d65b065
Update Module5.md
CSI-Daniel-Cintron Oct 12, 2021
e3bcc2a
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Oct 18, 2021
54ed1e9
8ball
CSI-Daniel-Cintron Oct 18, 2021
6d36416
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Oct 18, 2021
ba05233
Create Daniel-Cintron-Simpsons-Shipping.py
CSI-Daniel-Cintron Oct 20, 2021
096a566
Create Daniel-Cintron-Simpsons-Shipping.PNG
CSI-Daniel-Cintron Oct 20, 2021
926c867
Update Daniel-Cintron-Simpsons-Shipping.py
CSI-Daniel-Cintron Oct 21, 2021
fdb84fb
Update Daniel-Cintron-Simpsons-Shipping.PNG
CSI-Daniel-Cintron Oct 21, 2021
0a17c9b
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Oct 26, 2021
63fbe69
Create Daniel-Cintron-ProjectileMotion.py
CSI-Daniel-Cintron Oct 26, 2021
78bf562
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Oct 28, 2021
a7c022e
Update Daniel-Cintron-ProjectileMotion.py
CSI-Daniel-Cintron Oct 28, 2021
5ac0a89
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Nov 3, 2021
c15bd7b
Update Project
CSI-Daniel-Cintron Nov 3, 2021
afdfe34
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Nov 5, 2021
28c1c94
Update Daniel-Cintron-ProjectileMotion.py
CSI-Daniel-Cintron Nov 5, 2021
a13ca6d
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Nov 11, 2021
0c40998
Planets update
CSI-Daniel-Cintron Nov 11, 2021
bc6c283
Update Daniel-Cintron-ProjectileMotion.py
CSI-Daniel-Cintron Nov 12, 2021
bb482a9
Update Projectile-Motion.json
CSI-Daniel-Cintron Nov 12, 2021
43bfb56
projects and module 6 FINAL UPDATE!!!!!!!!
CSI-Daniel-Cintron Nov 15, 2021
10c5238
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Jan 20, 2022
e5ad407
first update
CSI-Daniel-Cintron Jan 20, 2022
d3b791e
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Jan 20, 2022
e2cfa2c
Update Daniel-Cintron-Hangman.py
CSI-Daniel-Cintron Jan 21, 2022
28a0ae5
Update
CSI-Daniel-Cintron Jan 24, 2022
042fb3a
Update Daniel-Cintron-Hangman.py
CSI-Daniel-Cintron Jan 24, 2022
a880945
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Feb 1, 2022
1f9129b
Update Daniel-Cintron-Hangman.py
CSI-Daniel-Cintron Feb 1, 2022
bbe7403
Update Daniel-Cintron-Hangman.py
CSI-Daniel-Cintron Feb 1, 2022
adcf3c2
Update Daniel-Cintron-Hangman.py
CSI-Daniel-Cintron Feb 1, 2022
71599fc
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Feb 7, 2022
e4733e1
Create Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Feb 7, 2022
057a32e
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Feb 7, 2022
2c67fc6
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Feb 9, 2022
5bce2a7
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Feb 17, 2022
b4f724a
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Feb 24, 2022
41983ab
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Feb 24, 2022
89489d1
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Feb 28, 2022
ac145f2
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Mar 4, 2022
3318abc
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Mar 4, 2022
8b5410c
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Mar 4, 2022
41a4121
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Mar 8, 2022
06392d6
Update Daniel-Cintron-Snake.py
CSI-Daniel-Cintron Mar 9, 2022
b307062
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Mar 14, 2022
0cf3814
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Mar 14, 2022
1647fbf
Create Web-Scraping01-Daniel-Cintrón.PNG
CSI-Daniel-Cintron Mar 14, 2022
0280520
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Mar 16, 2022
c2ff117
update
CSI-Daniel-Cintron Mar 16, 2022
8b81a85
Merge branch 'main' of https://github.com/CSI-Daniel-Cintron/CSI-Pyth…
CSI-Daniel-Cintron Mar 16, 2022
36012cc
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Mar 23, 2022
ddb3f59
update
CSI-Daniel-Cintron Mar 23, 2022
ac2facb
Merge branch 'CSI-Carlos-Cobian:main' into main
CSI-Daniel-Cintron Mar 25, 2022
e73ed10
Create Web-Scraping04-Daniel-Cintrón.py
CSI-Daniel-Cintron Mar 25, 2022
51f5ae5
Create Web-Scraping-Daniel-Cintrón.PNG
CSI-Daniel-Cintron Mar 25, 2022
f87ff21
update
CSI-Daniel-Cintron Apr 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Modules/Module1/Module1.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,19 @@ You may update both simultaneously from Visual Studio by selecting.

What is the difference between Git and GitHub?

- Answer:
- Answer: The difference is that Github uses Git in order to share the codes.

What is the difference between a git commit and a git push?

- Answer:
- Answer: The difference is that commit is saving it and push is uploading it.

What is the difference between a pull, and an upstream pull?

- Answer:
- Answer: The difference between a pull and a upstream pull is that upstream pull is merging that one that you forked and pull is forking.

What part of these instructions was unclear or incomplete?

- Answer:
- Answer: None I understand them.

Type down any class notes below this sentence:

Expand Down
Binary file added Modules/Module2/Daniel Cintrón.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions Modules/Module2/Module2.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,23 @@ Typing `python` *(or `python3`)* into the terminal will enter the Python console
What is a benefit of using Markdown?
https://www.markdownguide.org/getting-started/

- Answer:
- Answer: Markdown is portable. Files containing Markdown-formatted text can be opened using virtually any application.It can also be used to create websites

What does "cd" stand for?

- Answer:
- Answer: It stands for changing directory

Did you get stuck at any point or become confused with your console? (yes/no) If so, what happened? How did you solve it?

- Answer:
- Answer: No

Did you consider searching google for other commands to run? What did you try?

- Answer:
- Answer: I never considered.

What would you like to program?

- Answer:
- Answer: I would like to program computers.

Type down any class notes below this sentence:

Expand Down
20 changes: 20 additions & 0 deletions Modules/Module3/Daniel-Cintron-Ticketera.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
print("Miss World 2021")
print("The cost of each seat is as follow: Club Seat = $350, Nivel Principal = $350, Nivel Superior = $75")

Club_Seat = int(input("How many tickets sold for Club Seat? ="))
Nivel_Principal = int(input("How many tickets sold for Nivel Principal="))
Nivel_Superior = int(input("How many tickets sold for Nivel Superior="))

def SectionSales(Club_Seat, Nivel_Principal, Nivel_Superior):
print(f"The cost for Club Seat Tickets is: {int(Club_Seat) * 350}")
print(f"The cost for Nivel Principal Tickets is: {int(Nivel_Principal) * 350}")
print(f"The cost for Nivel Superior Tickets is: {int(Nivel_Superior) *75}")
print()
SectionSales(Club_Seat, Nivel_Principal, Nivel_Superior)
Sales_CS = Club_Seat * 350
Sales_NP = Nivel_Principal * 350
Sales_NS = Nivel_Superior * 75
def TicketsTotal( Sales_CS, Sales_NP, Sales_NS):
print(f"The total of tickets sales is ${int(Sales_CS) + int(Sales_NP) + int(Sales_NS)}")
print()
TicketsTotal(Sales_CS, Sales_NP, Sales_NS)
10 changes: 5 additions & 5 deletions Modules/Module3/Module3.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,24 @@ print(type(age))

What is the difference between "42" and 42.

- Answer:
- Answer: first is a spring and the other is an intenger

Define the boolean operators: >, <, ==, >=, <=

- Answer:
- Answer:>:grester than <: less than ==:equals >=: more or equal than <=:less or equal than

How do you address an index in an list? Write a python code that assigns 34 to a new variable by accessing the value stored in:
arr = [4, 3, -1, 4, 34]

- Answer:
- Answer:arr{4}

What is the first index of a list? Why?

- Answer:
- Answer:0 Because pyhton starts with 0

Provide an original example of a null value. It must prove your understanding of the concept.

- Answer:
- Answer:If there is othing it is a null value.

Type down any class notes below this sentence:

Expand Down
27 changes: 27 additions & 0 deletions Modules/Module4/Daniel Cintron-Calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# print("Hello World")
# print(input("What is your name?: "))
# myName = input ()
# print("It is good to mmet you", myName)
# print("What is your age? :")
# myAge = input()
# print("You will be " + str(int(myAge)+5)+" in 5 years")
print("Rectangle Area Calculator")
print("""
-----------------------
| |
| |
| |
| |
| |
-----------------------
""")
mywidth = int(input("What is the base or width of the square: "))
myheight = int(input("What is the height of the figure: "))
print("The Area of the rectangle is: ", mywidth * myheight)
print()
def AreaOfRectangle(width, height):
print(f"Area of the rectangle is {int(width) * int(height)}")
print("Width is 15 cm")
print("Height is 11 cm")
AreaOfRectangle(15, 11)

Binary file added Modules/Module4/Daniel-Cintron-Calculator.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Modules/Module4/Daniel-Cintron-Ticketera.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Modules/Module4/Module4-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 20 additions & 8 deletions Modules/Module4/Module4.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,29 +126,34 @@ print(f"Or use the print directly {myNumber}")
### [The Geometric-Functions project corresponds to this lecture.]((/../../tree/main/Projects/Geometric-Functions/Geometric-Functions.md))


# Class Discussion
## Answer the questions on the Markdown file located within your <u>`Module4`</u> directory (Module4.md)`(12pts)`
<!-- Welcome! These are your questions. -->
!-- Welcome! These are your questions. -->
<!-- Answer using full sentences to receive all points. -->
<!--

Evaluate the following code. Is the code written correctly? What would be the correct code?
print('This message has a syntax error!")
print(Churrigueresco)

- Answer:
- Answer: print("This message has a syntax error!")
print("Churrigueresco")


Evaluate the following code. Is the code written correctly? What would be the correct code?
someNumber=360
print(' The Number is someNumber ')
print('The Number is someNumber')
Expected: The Number is 360

- Answer:
myNumber = 360
print(f"The number is {MyNumber}")

Define a function that takes 2 or more string parameters and prints a single line using them as part of a functional string. The function may do anything you chose but the function name and parameter names must be representative of what they are.

- Answer:

myName = "Daniel Cintron"
myAge:int = 14
myString = f'Hello {myName}! Your are {myAge}.'
print(myString)


Refer to this documentation webpage and google for the exercises below:
Expand All @@ -161,18 +166,25 @@ Which code returns the length of the string s0:
s0 = "What is my length? Store it as a number in a variable."

- Answer:
s0 = "What is my length? Store it as a number in a variable"
ss0 = len(s0)
print(ss0)

How do you create a substring in python?
Create a substring of s1 containing only my name. Store it in a variable called ss1.
https://www.freecodecamp.org/news/how-to-substring-a-string-in-python/

s1 = "Hello Student! My name is Carlos Jose Cobián. I enjoy coding and video games!"

- Answer: ss1 =
- Answer: ss1 = "Hello Student! My name is Carlos Jose Cobian"
ss1 = (s1[26:44])
print(ss1)

Capitalize every letter of ss1 using a function. Store it in a variable called SS1.

- Answer: SS1 =
- Answer: SS1 =ss1.upper()
print(SS1)



This last section is not worth any points, but is worth looking into. It is good string manipulation practice and contains exercises that you may see in a pop quiz!
Expand Down
36 changes: 36 additions & 0 deletions Modules/Module4/Modulo4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# print("What did you have for Breakfast?")
# meal="sandwich"
# print(meal)
# print("What did you have for lunch?")
# meal="pasta"
# print(meal)
# print("What did you have for dinner?")
# meal="lasagna"
# print(meal)

myNumber = 360
print(f"The number is {myNumber}")

#Define a function that takes 2 or more string parameters and prints a single line using them as part of a functional string. The function may do anything you chose but the function name and parameter names must be representative of what they are.

# Answer:
myName = "Daniel Cintron"
myAge:int = 14
myString = f'Hello {myName}! Your are {myAge}.'
print(myString)



s0 = "What is my length? Store it as a number in a variable"
ss0 = len(s0)
print(ss0)

s1 = "Hello Student! My name is Carlos Jose Cobian"
ss1 = (s1[26:44])
print(ss1)

SS1 =ss1.upper()
print(SS1)



Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions Modules/Module5/Daniel-Cintron-Simpsons-Shipping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
print("Welcome to Simpsons' Shipping")
weight:float = float(input("What is the weight of your package?"))
#ground shipping

if (weight == 2 or weight < 2):
cost_ground = float(weight * 1.75 + 20)
print("Ground Shipping: $", float(cost_ground))
elif (weight > 2 and weight <= 6):
cost_ground = weight * 3.50 + 20
print("Ground Shipping: $", float(cost_ground))
elif (weight > 6 and weight <= 10):
cost_ground = weight * 4.50 + 20
print("Ground Shipping: $", float(cost_ground))
else:
cost_ground = weight * 5.25 + 20
print("Ground Shipping: $", float(cost_ground))
#courier shipping

if (weight == 2 or weight <2):
cost_courier = weight * 3.50 + 5
print("Courier Shipping: $", float(cost_courier))
elif (weight > 2 and weight <= 6):
cost_courier = weight * 7.00 + 8
print("Courier Shipping: $", float(cost_courier))
elif (weight > 6 and weight <= 10):
cost_courier = weight * 9.00 + 12
print("Courier Shipping: $", float(cost_courier))
else:
cost_courier = weight * 10.50 + 15
print("Courier Shipping: $", float(cost_courier))
#drone shipping

if (weight == 2 or weight <2):
cost_drone = weight * 5.25
print("Drone Shipping: $", float(cost_drone))
elif (weight > 2 and weight <= 6):
cost_drone = weight * 10.50
print("Drone Shipping: $", float(cost_drone))
elif (weight > 6 and weight <= 10):
cost_drone = weight * 13.50
print("Drone Shipping: $", float(cost_drone))
else:
cost_drone = weight * 15.75
print("Drone Shipping: $", float(cost_drone))
#ground shipping premium

print("Ground Shipping Premium $150")
Binary file added Modules/Module5/Daniel-Cintron-magic8.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions Modules/Module5/Daniel-Cintron-magic8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import random

print("Welcome to the totally legal and not a scam magic 8 ball business")
Name=input("WHAT IS YOUR NAME?")
print(f"Hi:{Name}")
Question=input("What is your question?")
print(f"{Question}")


random_number = random.randint(1,12)
if random_number == 1:
print("Yes - definitely so.")
elif random_number == 2:
print("It is decidedly so.")
elif random_number == 3:
print("Without a doubt.")
elif random_number == 4:
print("Reply hazy, tray again")
elif random_number == 5:
print("Ask again later")
elif random_number == 6:
print("Better not to tell you now.")
elif random_number == 7:
print("My sources say NO")
elif random_number == 8:
print("Outlook not so good.")
elif random_number == 9:
print("Very doubtful.")
elif random_number == 10:
print("0%")
elif random_number == 11:
print("50%/50%")
elif random_number == 12:
print("100%")
else:
print ("error")
11 changes: 11 additions & 0 deletions Modules/Module5/Module5.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,19 @@ Give a python example for each logic operator in the module image.

- Answers:
- OR:
pinneapples:6
if (pinneapples > 2 or pinneapples < 7):
print("You have less pinneapples.") #true
- AND:
pinneapples:8
if (pinneapples > 1 and pinneapples < 9):
print("You have few pinneapples.") #true
- NOT:
pinneapples:6
if not (pinneapples > 2 or pinneapples < 7):
print("You have less pinneapples.") #false
else:
print("You have more pinneapples")


Type down any class notes below this sentence:
Expand Down
33 changes: 33 additions & 0 deletions Modules/Module5/RockPaperScissors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import random
print("Welcome to Rock, Paper, Scissors Game!!!")
RPS = ("rock", "paper", "scissors")

playerChoice = input("Lets play. Choose one: rock, paper, scissors\n")

computerChoice = random.choice(RPS)
print(f"Computer selected: {computerChoice}")
print(f"Player selected: {playerChoice}")

if(playerChoice == computerChoice) :
print("You tied :-/")

elif(playerChoice == "rock" and computerChoice == "scissors") :
print("Rock crushes Scissor. You won! :)")

elif(playerChoice == "rock" and computerChoice == "paper") :
print("Rock gets suffocated Paper. You lost! :)")

elif(playerChoice == "paper" and computerChoice == "rock") :
print("Paper suffucates Rock . You won! :)")

elif(playerChoice == "paper" and computerChoice == "scissors") :
print("Paper gets decapitated by Scissors. You lost! :)")

elif(playerChoice == "scissors" and computerChoice == "rock") :
print("Scissor gets crushed by Rock. You lost! :)")

elif(playerChoice == "scissors" and computerChoice == "paper") :
print("Scissor cuts Paper. You won! :)")

else:
print("Something isn't right, maybe try again")
Loading