Re: Something i didn't understand
Guys Thank you boath, now i knew
URL: https://forum.audiogames.net/post/438946/#p438946
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Something i didn't understand
The <10 part completes the text adding spaces to the right while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become "abcd " because abcd has 4 characters and 6 are left to com
Re: Something i didn't understand
The <10 part completes the text adding spaces to the right while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become "abcd " because abcd has 4 characters and 6 are left to com
Re: Something i didn't understand
The >10 part completes the text adding spaces to the left while it doesn't reach 10 characters.So if you have a string ("abcd" for example) it will become " abcd" because abcd has 4 characters and 6 are left to com
Re: Something i didn't understand
@5, that is what I've been trying to tell you all along -- a format specifier. I'm not sure what it does, but considering that it has .format() after it, its formatting a string with those characters within the braces.
URL: https://forum
Re: Something i didn't understand
@5, that is what I've been trying to tell you all along -- a format specifier.
URL: https://forum.audiogames.net/post/438832/#p438832
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-guc
Re: Something i didn't understand
Ethin wrote:@3, my point is this.This:print("This is a {}".format("test"))Will printThis is a testBecause the {} signify a formatter specifier. I.e.: {:,} will format numbers with comma separators.Ok, so what is th
Re: Something i didn't understand
@3, my point is this.This:print("This is a {}".format("test"))Will printThis is a testBecause the {} signify a formatter specifier. I.e.: {:,} will format numbers with comma separators.
URL: https://forum.audiogames
Re: Something i didn't understand
Ethin wrote:I find it difficult to figure out what your trying to do. In either case, the items within the braces are format specifiers. Note that, if there was an f just before the opening quotation mark in the formatted string, that would create
Re: Something i didn't understand
I find it difficult to figure out what your trying to do. In either case, the items within the braces are format specifiers. Note that, if there was an f just before the opening quotation mark in the formatted string, that would create an f-string,
Re: Something i didn't understand
I find it difficult to figure out what your trying to do. In either case, the items within the braces are format specifiers. Note that, if the opening quotation mark in the formatted string there was an f, that would create an f-string, which would ma
SOmething i didn't understand
Hi guys, i didn'T understand why the code contains {:<10} is it something like limitting parametres?def reg(**args): print("-"*30) for key, value in args.items(): print("{:<10}: {}".format(value, key)) prin
12 matches
Mail list logo