subject

(1 pt) see if you can change the program below by following the instructions in the comments.

# see if you can change this program so the
# variable x in the function is a reference
# to the variable x outside the function.
#
# note: doing this is questionable
# programming practice; this exercise is
# just meant for academic purposes!

x = 10

def my_function():
x = 20
print(x)

my_function()
print(x)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
question
Computers and Technology, 24.06.2019 19:00
Luis is cloud-based( microsoft bot framework). true false
Answers: 1
You know the right answer?
(1 pt) see if you can change the program below by following the instructions in the comments.
...
Questions
question
Mathematics, 08.01.2021 20:10
question
English, 08.01.2021 20:10
question
Mathematics, 08.01.2021 20:10
question
Mathematics, 08.01.2021 20:10
Questions on the website: 13722367