Skip to content

Commit 13306a5

Browse files
committed
inicio for loop
1 parent 132dd9e commit 13306a5

File tree

29 files changed

+114
-10
lines changed
  • .learn/resets
  • exercises

29 files changed

+114
-10
lines changed

.learn/resets/01-Console/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# print "Hello World!" on the console
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# your code here
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#your code here
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# your code here
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
age = int(input('What is your age?\n'))
2+
# CHANGE THE CODE BELOW TO ADD 10 TO AGE
3+
4+
print("Your age is: "+str(age))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Set the values for my_var1 and my_var2 here
2+
3+
4+
## Don't change below this line
5+
the_new_string = my_var1+' '+my_var2
6+
print(the_new_string)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
a = '</title>'
2+
b = '</html>'
3+
c = '<head>'
4+
d = '</body>'
5+
e = '<html>'
6+
f = '</head>'
7+
g = '<title>'
8+
h = '<body>'
9+
10+
# ⬆ DON'T CHANGE THE CODE ABOVE ⬆
11+
# ↓ start coding below here ↓
12+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
total = int(input('How much money do you have in your pocket\n'))
2+
3+
# YOUR CODE HERE
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
user_input = int(input('How many people are coming to your wedding?\n'))
2+
3+
if user_input <= 50:
4+
price = 4000
5+
6+
print('Your wedding will cost '+str(price)+' dollars')
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import random
2+
3+
def get_randomInt():
4+
# CHANGE ONLY THIS LINE BELOW
5+
random_number = random.random()
6+
return random_number
7+
8+
print(get_randomInt())

0 commit comments

Comments
 (0)