R Racer_X Eternal Poster Jul 18, 2022 #1 helo po . .. baguhan lang po . tanong ko lang po bakit need pa lagyan ng "str" yung variable po sa print? pag inalis ko naman po nag eerror ... bakit po kaya need pa lagyan? yung s at d sorry po newbie lang po .. salamat po
helo po . .. baguhan lang po . tanong ko lang po bakit need pa lagyan ng "str" yung variable po sa print? pag inalis ko naman po nag eerror ... bakit po kaya need pa lagyan? yung s at d sorry po newbie lang po .. salamat po
M moonlightK Forum Expert Jul 18, 2022 #2 i think concatenation kasi , kaya need siya lagyan ng str para ma concatenate sa " + sides +" , conversion sa string ganun
i think concatenation kasi , kaya need siya lagyan ng str para ma concatenate sa " + sides +" , conversion sa string ganun
Z Zerobyte Forum Guru Jul 18, 2022 #3 di kasi pareho data type boss. para alam ni python na string concatenation ang gagawin mo.
Z zackmark29 Elite Jul 19, 2022 #6 Conversion siya ng integer to string. Pero pwede mo gawing ganito. Kasi old style na yan. Using f-string print(f'{s} sides: {d}')
Conversion siya ng integer to string. Pero pwede mo gawing ganito. Kasi old style na yan. Using f-string print(f'{s} sides: {d}')
K Kyklops Leecher Jul 19, 2022 #7 str() function The str() function is used to convert the specified value into a string. The str() function returns the string version of the given object.
str() function The str() function is used to convert the specified value into a string. The str() function returns the string version of the given object.
P PHC_Jayvee nakatapos din sa research😂🤣 Jul 19, 2022 #8 zackmark29 said: Conversion siya ng integer to string. Pero pwede mo gawing ganito. Kasi old style na yan. Using f-string print(f'{s} sides: {d}') Click to expand... Pwede din comma Since space seperator lang naman If complex tama si zack use f string
zackmark29 said: Conversion siya ng integer to string. Pero pwede mo gawing ganito. Kasi old style na yan. Using f-string print(f'{s} sides: {d}') Click to expand... Pwede din comma Since space seperator lang naman If complex tama si zack use f string