File size: 294 Bytes
b692870
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys

def main(data):
    print("Received data:")
    print(data)
    print(type(data))

if __name__ == "__main__":
    # Check if data argument is provided
    if len(sys.argv) > 1:
        data = sys.argv[1]
        main(data)
    else:
        print("No data provided.")