[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor acceptance emails will be sent out over the coming weeks. Make sure to check your spam folder!


[Advertise on 4chan]


File: WTF Python Home Page.png (39 KB, 573x468)
39 KB PNG
Why does the python home page think that 2 time 3 is 8??

2 time 3 is 6....
>>
And 17/3 is not 5....
>>
saar central, or ironic retardposting?
not good
>>
>>109080833
Worst thread on 4channel.
>>
>>109080833
2**3 also known as:
23 also known as
2x2x2
nigga is u trolling?
>>
>>109080833
It's not 2 times 3, it's 2 times times 3, which is 2 times 3 plus another 2, totaling up to 8.
>>
>>109080935
ah gotcha, just found that answer elsewhere too. thanks.
>>
>>109080833
* is the multiplication operator
** is the exponentiation operator

2 * 3 would be read 2 times 3
2 ** 3 would be read 2 to the power of 3, not 2 times 3.
>>
why you feed troll
>>
Thanks for the laughs.

>>109080901
That is quite an accomplishment then.
>>
>>109080833
I don't get it.
What does ** even do?
>>
>>109081817
>What does ** even do?
the absolute state of /g/, even /v/ is smarter nowadays
>>
>>109081817
It converts the number on the left into star energy.
>>
The real question is why doesn't // mean the bth root of a in a // b
>>
>>109080833
% python3
Python 3.14.5 (main, May 17 2026, 19:29:13) [GCC 16.1.1 20260516 0fba51e8f39b245a3c0c2b75dad2619ed749f320] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.pow(2,3)
8.0
>>
>>109081817
It's 2 to the power of 3 (2^3). ^ is not used because it means xor
>>
>>109080833
Maybe Python is too advanced for you, might I suggest eating crayons instead?
>>
>everyone in this thread
>look at these idiots. I'm just pretending to be retarded
>>
>>109080935
This answer was accepted as the solution.
This thread will be locked in the next 10 minutes
>>
>>109081817
It dereferences the integer value at the literal virtual address 3 and then multiplies it with the literal constant 2, obviously. Do you even C?

>inb4 3 is an integer literal not an integer pointer literal
That's when the python kicks in, chud.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.