+ 1
Could you tell me how can I use input method in Python?
I wanna use two arguments with input structure.
5 Answers
+ 3
INPUT METHOD:
>input for strings :
a=input ()
>integer input:
a=int(input())
comment if you have any query...
+ 3
Add in the beginning of the code something like that
a = int(input("a"))
b = int(input("b"))
Remember that when you want to use one of the arguments in this code you have to change letters in it or do something like that
a = i
The second argument - b - you add in the place where you wrote 99
+ 1
i wanna get two arguments from user and then convert them to integer and then run my program .because of that i should learn input method or correct form of use this.
+ 1
i = 10
while i<99:
i=i+1
if i %2 !=0:
if i %3 !=0:
if i %5 !=0:
if i %7 !=0:
print(i)
in this code I wanna get the i and 99 or any digit , from user.but l couldn't.đ„
+ 1
thanks.đ