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
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Python Bootcamp 100 Days of Code
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="MihiCherub" data-source="post: 26585955" data-attributes="member: 238676"><p>Day 07 එකේ අලුත් lesson එකක් නෑ. කලින් ඉගෙන ගත්ත ඒව revision කරල ගේම් එකක් හදන්න තිබ්බ නිසා මම Day 08 එකත් ඊයෙම කලා. පෝයයි රට වහලත් නිසා වෙලාවත් තිබ්බ.</p><p></p><p>#Day_08</p><p>Function Parameters & Caesar Cipher (1hr 24min)</p><p></p><p>Alphabet එකක් හදාගන්න පුලුවන් මේ විදියට. ඔක්කොම letters manually add කරන්නෙ නැතුව.</p><p></p><p>[CODE=python]alphabet = list(string.ascii_lowercase)</p><p>alphabet = list(string.ascii_uppercase)</p><p>alphabet = list(string.ascii_letters)[/CODE]</p><p></p><p>[CODE]>>> help(string) # on Python 3</p><p>....</p><p>DATA</p><p> ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'</p><p> ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'</p><p> ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'</p><p> digits = '0123456789'</p><p> hexdigits = '0123456789abcdefABCDEF'</p><p> octdigits = '01234567'</p><p> printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'</p><p> punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'</p><p> whitespace = ' \t\n\r\x0b\x0c'</p><p>[/CODE]</p><p></p><p>#Day_09</p><p>Dictionaries, Nesting and the Secret Auction (1hr 2min)</p><p></p><p><strong>TIP</strong></p><p>While loop එකක් end කරන්න Dr. Angela කරන විදියට නැතුව අපිට Break use කරල end කරන්න පුලුවන්.</p><p>[CODE=python]is_finished = False</p><p>while not is_finished:</p><p> # Do some stuff</p><p> if check_condition:</p><p> is_finished = True[/CODE]</p><p></p><p>Break use කරල</p><p></p><p>[CODE=python]while(True):</p><p> #Do some stuff</p><p> if check_condition:</p><p> break[/CODE]</p><p></p><p>100 milestone එක reach කලා අද. 15% complete.</p><p></p><p><img src="https://i.imgur.com/y6Lz8LK.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="MihiCherub, post: 26585955, member: 238676"] Day 07 එකේ අලුත් lesson එකක් නෑ. කලින් ඉගෙන ගත්ත ඒව revision කරල ගේම් එකක් හදන්න තිබ්බ නිසා මම Day 08 එකත් ඊයෙම කලා. පෝයයි රට වහලත් නිසා වෙලාවත් තිබ්බ. #Day_08 Function Parameters & Caesar Cipher (1hr 24min) Alphabet එකක් හදාගන්න පුලුවන් මේ විදියට. ඔක්කොම letters manually add කරන්නෙ නැතුව. [CODE=python]alphabet = list(string.ascii_lowercase) alphabet = list(string.ascii_uppercase) alphabet = list(string.ascii_letters)[/CODE] [CODE]>>> help(string) # on Python 3 .... DATA ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz' ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' digits = '0123456789' hexdigits = '0123456789abcdefABCDEF' octdigits = '01234567' printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c' punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' whitespace = ' \t\n\r\x0b\x0c' [/CODE] #Day_09 Dictionaries, Nesting and the Secret Auction (1hr 2min) [B]TIP[/B] While loop එකක් end කරන්න Dr. Angela කරන විදියට නැතුව අපිට Break use කරල end කරන්න පුලුවන්. [CODE=python]is_finished = False while not is_finished: # Do some stuff if check_condition: is_finished = True[/CODE] Break use කරල [CODE=python]while(True): #Do some stuff if check_condition: break[/CODE] 100 milestone එක reach කලා අද. 15% complete. [IMG]https://i.imgur.com/y6Lz8LK.jpg[/IMG] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom