peak coding (1 Viewer)

NotBamboo

Well-Known Member
Joined
Apr 2, 2025
Messages
443
Gender
Male
HSC
2026
@Socialism
why is python so inefficient ngl
Python:
a = 'H'

b = 'E'

c = 'L'

d = 'L'

e = 'O'

f = ' '

g = 'W'

h = 'O'

i = 'R'

j = 'L'

k = 'D'

all_letters_that_were_above_the_line_that_declared_this_array = [a, b, c, d, e, f, g, h, i, j, k]

def make_all_the_letters_that_were_in_an_array_into_one_string(the_array_with_all_the_letters):

    if not the_array_with_all_the_letters:

        return ""

    new_variable = the_array_with_all_the_letters.pop(0)

    if not the_array_with_all_the_letters:

        return new_variable

    new_variable_two = the_array_with_all_the_letters.pop(-1)

    return new_variable + make_all_the_letters_that_were_in_an_array_into_one_string(the_array_with_all_the_letters) + new_variable_two

print(make_all_the_letters_that_were_in_an_array_into_one_string(all_letters_that_were_above_the_line_that_declared_this_array).lower())
 
Last edited:

NotBamboo

Well-Known Member
Joined
Apr 2, 2025
Messages
443
Gender
Male
HSC
2026
LOL mate have you ever heard of functions
its my friends code
mine is even longer
we were making the most inefficient way to write 'hello world'

and there is a function in that btw
 

brent012

Webmaster
Webmaster
Joined
Feb 26, 2008
Messages
5,308
Gender
Male
HSC
2011
pmo that theres code options for bos but no python

like whos writing php on a forum lets be honest its nobody
There's a Python option, it's just not under "Common Languages" and not something that's configurable out of the box.

PHP is actually probably quite a popular option with forums as most forum software is implemented in PHP and there are lots of forums around about configuring and modifying forum and other PHP web applications. E.g. a big use case is probably in the vendor's own support forum for the software.
 

Socialism

Well-Known Member
Joined
Jun 3, 2024
Messages
1,637
Location
🏳️‍⚧️Transnistria🏳️‍⚧️
Gender
Undisclosed
HSC
2026
There's a Python option, it's just not under "Common Languages" and not something that's configurable out of the box.

PHP is actually probably quite a popular option with forums as most forum software is implemented in PHP and there are lots of forums around about configuring and modifying forum and other PHP web applications. E.g. a big use case is probably in the vendor's own support forum for the software.
OH! i never even checked, i just assumed based off of the bb-code settings page that you coudlnt do it 🤣

i was mostly kidding about the PHP thing though...

wow yeah i've just checked out the code button! ill have to play around with that at some point thats so cool!!
 

NotBamboo

Well-Known Member
Joined
Apr 2, 2025
Messages
443
Gender
Male
HSC
2026
pmo that theres code options for bos but no python

like whos writing php on a forum lets be honest its nobody
oh i forgot this is an old textbox thing u can actually write code here
 

NotBamboo

Well-Known Member
Joined
Apr 2, 2025
Messages
443
Gender
Male
HSC
2026
There's a Python option, it's just not under "Common Languages" and not something that's configurable out of the box.

PHP is actually probably quite a popular option with forums as most forum software is implemented in PHP and there are lots of forums around about configuring and modifying forum and other PHP web applications. E.g. a big use case is probably in the vendor's own support forum for the software.
RARE SIGHTING OF SHINY 'WEB MASTER'
ULTRA BALL GOOO

yeah that's pretty cool I never noticed
 

jane1820

Well-Known Member
Joined
Jul 15, 2024
Messages
1,845
Location
Chase Atlantic’s rarri
Gender
Female
HSC
2026
PHP is actually probably quite a popular option with forums as most forum software is implemented in PHP and there are lots of forums around about configuring and modifying forum and other PHP web applications. E.g. a big use case is probably in the vendor's own support forum for the software.
PHP? Pigeonhole principle? Math? The one i got wrong in the exam bc the answer was 2^5 and not 2x5? That one? 💔💔
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top