0

Plz can anyone give me example of input

Learning

4th May 2021, 11:51 AM
Asher
Asher - avatar
3 odpowiedzi
+ 2
s=int(input()) ---> for integers s=input()---> for strings s=float(input())---> for floats
4th May 2021, 11:59 AM
Atul [Inactive]
+ 2
sarada lakshmi also complete the courses of python first
4th May 2021, 1:35 PM
Atul [Inactive]
0
x = input('Write something: ') print(x) >>>Write something: Wanda Maximoff >>>Wanda Maximoff y = int(input('Write a Integer: ')) print(y) >>>Write a Number: 69 >>>69 z = float(input('Write a Decimal: ') print(z) >>> Write a Decimal: 1.999 >>>1.999 https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2426/?ref=app
4th May 2021, 1:32 PM
Scarlet Witch
Scarlet Witch - avatar