It looks like this comment contains a code block delimited with triple backticks. Unfortunately reddit does not have universal support for this syntax and your comment will not render correctly on old reddit and most mobile apps.
For the benefit of people on old reddit, this link will take you to a correct rendering of the comment.
/u/OkService6, it would be appreciated, but not required, if you could edit your comment to use the more compatible four space indention format. For single lines or inline code you can use single backticks.
111
u/SupercraftD Aug 26 '21
Never can be too sure. What if it turns into an integer?
54
u/Bagpiper513 Aug 26 '21
I think they want to use a string, but I can’t really tell. A comment would be useful here.
46
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Aug 26 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
26
u/OkService6 Aug 26 '21
really missed the opportunity to put the type hint
: stron those variables12
u/Legendary-69420 Aug 26 '21
Sorry but shouldn't it be:
6
u/canal_algt Aug 26 '21
print(str(str(str(str(str(str(str("Is this a string?")))))))
22
u/Kabitu Aug 26 '21
string stringString = (string)str((string)"string"), Banana Phone!
10
u/Sulungskwa 92% chunk asset optimization TerserPlugin Aug 26 '21
maybe they thought that by making it a "triple string", it would be wrapped in quotes 3 times and become a comment.
7
u/[deleted] Aug 26 '21
Well, it’s really safe I guess...
4
u/Voxelgon_Gigabyte Aug 26 '21
when you’re fed up with python typecasting
3
u/fillemoinkes Aug 26 '21
Yo dawg, i heard you like strings So we put "string" in your string Now you can str while you string
3
u/[deleted] Aug 26 '21
When you really need to make sure that string is a string
2
u/dave_thenerd Aug 28 '21
python: Which costly String operation do you want:
this dude: All of them!
1
u/[deleted] Aug 31 '21
What if it turns into integer by itself?
0
u/Jojojordanlusch Aug 27 '21
sex
0
u/[deleted] Aug 26 '21
[deleted] — view deleted comment