0

Can you include the answer in Module 2(Python)Simple Calculator? Would like2 kno how add input's variables created, on the fly

Simple Calculator quiz answer

16th Jan 2021, 6:29 AM
Cyn1
Cyn1 - avatar
4 Respuestas
+ 1
You can place the input directly into your code instead of the variable. Example: #With variable num = int(input()) for i in range(num): print(i) #Without variable for i in range(int(input()): print(i)
16th Jan 2021, 8:20 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
# no variables print(input())
16th Jan 2021, 8:23 AM
Lisa
Lisa - avatar
+ 1
Thanks Ritt Wittkopp!🙂😄
16th Jan 2021, 8:25 AM
Cyn1
Cyn1 - avatar
0
Don't worry have solved it. Would like to know if you can add input's without making them variables though
16th Jan 2021, 7:54 AM
Cyn1
Cyn1 - avatar