May-02-2021, 10:37 PM
(This post was last modified: May-03-2021, 01:22 AM by Yoriz.
Edit Reason: Added code tags
)
Hello everyone im trying to make my codes output to look like this output,
without any trailing or leading symbols. Any tips on how i can do that?
The expected output should look like this.
without any trailing or leading symbols. Any tips on how i can do that?
The expected output should look like this.
Output: | 0 | root | /bin/bash
| 1 | bin | /usr/bin/nologin
| 2 | daemon | /usr/bin/nologin
| 1000 | nsa | /bin/bash
currentuser ={'root':{'uid': 0,'username': 'root' ,'shell': '/bin/bash'}, 'daemon': {'uid': 1,'username': 'daemon' ,'shell': '/usr/sbin/nologin'}, 'bin': {'uid': 2,'username': 'bin', 'shell':'/usr/sbin/nologin'}, 'nsa': {'uid': 1000,'username': 'nsa', 'shell': '/bin/bash'}} for key, value in currentuser.items(): print(f"\nKey: {key}") print(f"Value: {value}")