Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Quereact Latest Questions

Hi I have a variables that is declared outsides fucntions. How can I use and change these variables inside function usign Python? thank you

  1. 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:
    [crayon-66f5f96ac9f0e641335052/]
    This code will print:
    [crayon-66f5f96ac9f13736697926/]
     

    See less
0
0
Like1 User
1 User