Computers and Technology

The parent_directory function returns the name of the directory that's located just above the current working directory. Remember that '..' is a relative path alias that means "go up to the parent directory". Fill in the gaps to complete this function. import os
def parent_directory():
# Create a relative path to the parent
# of the current working directory
dir = os. getcwd()
relative_parent = os. path. join(dir, ___)
# Return the absolute path of the parent directory
return os. path. dirname(relative_parent)
print(parent_directory())

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 11:20, isabelperez063
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
image
Computers and Technology, 24.06.2019 12:50, vianca15
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, anselmojohn4370
Distinguish between a skill resume and a chronological resume and explain when it is best to use each format
Answers: 1
image
Computers and Technology, 25.06.2019 05:30, pooperjooper
Website hosting servers have their own unique ip address, what does this address consist of? a. numbers and letters b. numbers c. letters d. letters and symbols
Answers: 2
Do you know the correct answer?
The parent_directory function returns the name of the directory that's located just above the curren...

Questions in other subjects:

Konu
History, 01.06.2021 17:40
Konu
Social Studies, 01.06.2021 17:40
Konu
Mathematics, 01.06.2021 17:40