Re: what happen with this python code?
Originally when I started learning Python I learned the .format method, but found it was too rigid if I wanted to quickly change a variable. Again. Totally personal preference. The good thing about Python and most any other language as you can
Re: what happen with this python code?
@4, you can as well omit the index number. Something like this would also work, but I don't know if it will be readableprint('{} {}'.format(1, 2,))I don't think format() is more readable than f"", I just think it's a preference. F it's pro
Re: what happen with this python code?
I would argue that print(f) with everything in one stream is more readable as you are then not having to look at the right hand part of the stream to remember like 0 1 2 and 3 and 4 and 17 and 25 are. When you start doing a number of substitutions
Re: what happen with this python code?
@3, you can use print("{0} {1} {2}.format(a, b, c)) instead which is more readable
URL: https://forum.audiogames.net/post/410498/#p410498
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabah
Re: what happen with this python code?
yep. I was gonna say. All you are currently doing is setting and changing variables. print is required to actually get the output. Also keep in mind that print I believe will throw an error if you try to directly print the integers. I tend to use f
Re: what happen with this python code?
Hi,We are directly copying the functions BGT provides, so you just need to read the help file. It will be in python soon, but file_directory and variable management are completed as of this writing.Regards,Amit
URL: https://forum.audiogames.net/post
Re: what happen with this python code?
Hi,To see the output, you will need to use print function. Like this:print(x)x is the variable. You can print any text or variable using it.Regards,Amit
URL: https://forum.audiogames.net/post/410269/#p410269
--
Audiogames-reflector mailing list
what happen with this python code?
when I writing this code and try to run in terminal still no result show upbelow is my code:#casting specific type#int typex = int(1)y = int(3.02)z = int("4")#string typegender = str("male, female")gpax = str(2.87)thanks for helpin