Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок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
4 ответов
+ 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)
+ 1
# no variables
print(input())
+ 1
Thanks Ritt Wittkopp!🙂😄
0
Don't worry have solved it. Would like to know if you can add input's without making them variables though