0

Guys..pls help..how can i give inputs..without displaying the msg entr a no...and directly getting the results

print("your sum is") float(input("enter a no"))+float(input(" entr no"))

26th Jun 2018, 4:20 PM
Y AD Ù
Y AD Ù - avatar
4 Réponses
+ 4
If you don't want to display the text, then you could just leave the area within the brackets for the input function empty. This just results in nothing being printed for when the input function is run. You could also just surround the inputs within a print function for the output to be what the user enters. print(float(input()) + float(input()))
26th Jun 2018, 4:30 PM
Faisal
Faisal - avatar
+ 1
i dont know python yet but i think you can do this Guys..pls help..how can i give inputs..without displaying the msg entr a no...and directly getting the results print("your sum is") float(float(input(" entr no"))
26th Jun 2018, 4:23 PM
Agent
Agent - avatar
+ 1
print("your sum is") x=float(input(float(input( "enter a no"))))+float(input(float(input('entr the no'))) print(x) print("so this \n is ur sum") thn wats wrong here mate
26th Jun 2018, 4:29 PM
Y AD Ù
Y AD Ù - avatar