Hi I have a variables that is declared outsides fucntions. How can I use and change these variables inside function usign Python? thank you
Hi, This is the syntax to concatenate strings: $text1 = "hello"; $text2 = "world"; $text = $text1 . ' ' . $text2; For your code, use this: function UppercaseText($text_list) { $GlobalText = ""; $TableSize = sizeof($text_list);; for ($i = 0; $i < $TableSize; $i++) { $BigText[] = strtoupper($text_lRead more
Hi,
This is the syntax to concatenate strings:
[crayon-6763f8a423444480010954/]
For your code, use this:
[crayon-6763f8a423448166568086/]
Have a good day
Follow this example to create a variable outside functions, and use it inside the functions: MyVariable = 99 #this is a global variable def changeAndPrint_GlobalVariable(): global MyVariable #use global variable in this function with "global" keyword print('Global variable "MyVariable" before changeRead more
Follow this example to create a variable outside functions, and use it inside the functions:
See less[crayon-6763f8a422f92945478884/]
This code will print:
[crayon-6763f8a422f98613273107/]