+ 1

Input function problem

I'm new in programming and have a problem with the input problem when trying to solve the totient problem. So my code was (by the way this is in python) phi = input('enter number ') if phi == 1: print('1') And when inputed 1 the output is 'no output' Can someone pointout where is the error?

11th Jan 2019, 10:52 AM
Yudha Satriawan
Yudha Satriawan - avatar
1 Odpowiedź
+ 2
Thanks it work i forgot the integer
11th Jan 2019, 11:12 AM
Yudha Satriawan
Yudha Satriawan - avatar