Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Handmade Character Soft Toy Bluey Bingo
anil1961
Updated:
Monday at 3:55 PM
Colombo
Dahua POE Switch 8 Ports (DH-PFS3010-8ET-65)
hashaz2012
Updated:
Monday at 11:56 AM
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Friday at 10:01 AM
Dating Website & Online Chat Room
hotvideo
Updated:
Jul 30, 2026
DJI Mini 4 Pro Drone Combo Plus
Hawaka
Updated:
Jul 30, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
phython දන්න අය කවුද?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="KeBa" data-source="post: 13717619" data-attributes="member: 85781"><p>ok</p><p></p><p>1. do not copy and past this code into python interpreter instead of that open a new python file ****.py and open it with python idle and press F5 (or Run)</p><p></p><p>2. I'm using python 2.7 so this code may or may not work with the latest python 3 coz they are not backward compatible.</p><p></p><p></p><p>[CODE]</p><p>[COLOR="Red"]def odder1():</p><p> for value in range(1000,0,-1):</p><p> if value%2:</p><p> print str(value)+",",</p><p></p><p>def odder2():</p><p> count = 0</p><p> for value in range(1000,0,-1):</p><p> if value%2:</p><p> print str(value)+",",</p><p> if count%2:</p><p> print str(count)+",",</p><p> count +=1</p><p>[/COLOR]</p><p>[/CODE]</p><p></p><p></p><p><span style="color: Blue">for python 3 you should use parentheses for print function </span></p><p></p><p></p><p>adoo machan uba monawa karana kenekda ??</p><p>python karanne mokatada ??</p><p></p><p></p><p>[CODE]</p><p>http://www.mediafire.com/?d0lgkswlycy9f0n</p><p>[/CODE]</p><p></p><p>download and run work only in python 2.7</p></blockquote><p></p>
[QUOTE="KeBa, post: 13717619, member: 85781"] ok 1. do not copy and past this code into python interpreter instead of that open a new python file ****.py and open it with python idle and press F5 (or Run) 2. I'm using python 2.7 so this code may or may not work with the latest python 3 coz they are not backward compatible. [CODE] [COLOR="Red"]def odder1(): for value in range(1000,0,-1): if value%2: print str(value)+",", def odder2(): count = 0 for value in range(1000,0,-1): if value%2: print str(value)+",", if count%2: print str(count)+",", count +=1 [/COLOR] [/CODE] [COLOR="Blue"]for python 3 you should use parentheses for print function [/COLOR] adoo machan uba monawa karana kenekda ?? python karanne mokatada ?? [CODE] http://www.mediafire.com/?d0lgkswlycy9f0n [/CODE] download and run work only in python 2.7 [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom