Skip to content

Commit fea796e

Browse files
Dil SombayevaDil Sombayeva
authored andcommitted
modules;
1 parent 9f74e55 commit fea796e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎src/day-1-toy/modules.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
# See docs for the sys module: https://docs.python.org/3.7/library/sys.html
77

88
# Print out the command line arguments in sys.argv, one per line:
9-
9+
print(sys.argv[1:]) #?
1010

1111
# Print out the platform from sys:
12-
print()
12+
print(sys.platform)
1313

1414
# Print out the Python version from sys:
15-
print()
15+
print(sys.version)
16+
print(sys.version_info)
1617

1718

1819

@@ -21,11 +22,11 @@
2122
# See the docs for the OS module: https://docs.python.org/3.7/library/os.html
2223

2324
# Print the current process ID
24-
print()
25+
print(os.getpid())
2526

2627
# Print the current working directory (cwd):
27-
print()
28+
print(os.getcwd())
2829

2930
# Print your login name
30-
print()
31+
print(so.getlogin())
3132

0 commit comments

Comments
 (0)