LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 10-05-2009, 09:50 PM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,361

Rep: Reputation: 118Reputation: 118
LXer: Python: input, raw_input, and inadvertently treating integers as strings


Published at LXer:

This is a "newbie" mistake, but these little details do tend to get in the way, which is why I'm posting my wee Python tutorial. If you know Python or programming, even reasonably well, this will probably seem way too simple to you. Just giving you a "heads up" so you don't waste your time. I encountered a lesson that teaches storing conditionals using booleans. The code was presented like this:..

Read More...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to override the raw_input() command in python deathalele Programming 1 10-05-2008 04:26 PM
If no raw_input: (Python question) xadrith Programming 4 07-26-2008 07:21 AM
Suspending operations with raw_input (Python) xadrith Programming 1 07-24-2008 05:09 PM
shell (bash) scripting - strings vs. integers bullfrog1870 Linux - Newbie 3 11-02-2006 08:51 PM
converting integers to strings 1337 Twinkie Programming 12 08-06-2004 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration