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
7 Answers
+ 1
python3 we use input() python 2 use raw_input()
+ 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'>)
+ 1
example on python 3
https://code.sololearn.com/cPcBraRMsoif/?ref=app
+ 1
https://code.sololearn.com/cpHBD0xLi4CM/?ref=app
this will help you buddy
0
Bro i need some detailed about your answer . Sorry.... but please u give any example
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
0
Thank you Bro... Thank you very much