You are viewing a single comment's thread. Return to all comments →
Em python: It took me a while to notice that what they would be using the imput() function
i = 4 d = 4.0 s = 'HackerRank '
ii = input() dd= input() ss= input()
ii = int(ii) dd=float(dd) ss=str(ss)
print(int(i)+ii) variables on a new line. print(float(d)+dd) printed first. print(str(s) + ss)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
Em python: It took me a while to notice that what they would be using the imput() function
i = 4 d = 4.0 s = 'HackerRank '
ii = input() dd= input() ss= input()
ii = int(ii) dd=float(dd) ss=str(ss)
print(int(i)+ii) variables on a new line. print(float(d)+dd) printed first. print(str(s) + ss)