(Beginner) Python *Number of parameters

Asked 1 years ago, Updated 1 years ago, 360 views

/Users/shardone/Desktop/Screen Shot 2023-02-15 PM 5.37.00.png

The top is the guide. I coded the bottom.

*How do I count the number of parameters? Error starting from the 16th.

python

2023-02-15 04:55

1 Answers

I can't see the picture.

import sys


Number of len(sys.argv)# parameters

You can calculate the number of parameters like this.


2023-02-15 06:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.