Friday , September 20 2024

What information can be read using the uname function provided by the os module? (Select two answers)

Questions BankCategory: Python Essentials 2What information can be read using the uname function provided by the os module? (Select two answers)
What information can be read using the uname function provided by the os module? (Select two answers)

  • Current path
  • Operating system name
  • Last login date
  • Hardware identifier

Explanation: The uname function returns an object that contains information about the current operating system. The object has the following attributes: systemname (stores the name of the operating system), nodename (stores the machine name on the network), release (stores the operating system release), version (stores the operating system version), and machine (stores the hardware identifier, e.g. x86_64.)

More Questions: Python Essentials 2 (PE2) Course Final Test