Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Monday, April 4, 2011
Python - Console I/O
Input:
1. For input just percharacter character
initial = sys.stdin.read(1)
2. For evaluating expression:
sum = input('Enter expression: ')
3. For string input:
name = raw_input('Enter your name: ')
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment