77.3k views
1 vote
Edhesive 2.2 code practice

questions 1 and 2

Python

User Jaaaaaaay
by
5.1k points

2 Answers

3 votes

Answer:

1)

a = float(input("Enter an integer: "))

print(a + 1)

print (a + 2)

print (a + 3)

2)

a = float(input("Enter a decimal: "))

b = float(input("Enter another decimal: "))

c = float(input("Enter a third decimal: "))

print("sum: " + str(a + b + c))

User Noralis
by
5.5k points
2 votes

Answer:

2.2 question 1

x = int(input("Enter an integer: "))

print(x + 1)

print(x + 2)

print(x + 3)

2.2 question 2

a = float(input("Enter number here: "))

b = float(input("Enter number here: "))

c = float(input("Enter number here: "))

print(a + b + c)

Step-by-step explanation:

There you go let me know if it didnt work

User Goodmami
by
6.1k points