0

In C++ and C we use cin and scanf for value reading purpode and printf and cout for writing purpose .

Guyes i need a help which function or operation is uses for value read and writing in python language

11th Sep 2017, 4:22 PM
priya varshini
priya varshini - avatar
7 Antworten
+ 1
python3 we use input() python 2 use raw_input()
11th Sep 2017, 4:39 PM
mhadi ahmed
mhadi ahmed - avatar
+ 1
Python 3.x's input and Python 2.x's raw_input are similar and raw_input is not available in Python 3.x. >>> import sys >>> sys.version '3.4.0 (default, Apr 11 2014, 13:05:11) \n[GCC 4.8.2]' >>> data = input("Enter a number: ") Enter a number: 5 + 17 >>> data, type(data) ('5 + 17', <class 'str'>)
11th Sep 2017, 4:41 PM
MsJ
MsJ - avatar
11th Sep 2017, 4:44 PM
mhadi ahmed
mhadi ahmed - avatar
+ 1
https://code.sololearn.com/cpHBD0xLi4CM/?ref=app this will help you buddy
11th Sep 2017, 5:03 PM
MsJ
MsJ - avatar
0
Bro i need some detailed about your answer . Sorry.... but please u give any example
11th Sep 2017, 4:41 PM
priya varshini
priya varshini - avatar
0
Bro in c and c++ we give different values but python how we give different vslues in s single program friends please help me i need a program for adding two numbers in python language
11th Sep 2017, 4:48 PM
priya varshini
priya varshini - avatar
0
Thank you Bro... Thank you very much
12th Sep 2017, 5:22 PM
priya varshini
priya varshini - avatar