|
|
back to boardHow can the program recognize when there aren´t more inputs (python3)? How can the program recognize when there aren´t more inputs if use python3 ? my program: nums = [int(x) for x in input().split()] nums.reverse() for num in nums: print('{:.4f}'.format(num ** 0.5)) What's wrong? anyone can tell me ,pls Edited by author 29.11.2023 07:42 Edited by author 29.11.2023 07:43 Re: How can the program recognize when there aren´t more inputs (python3)? Posted by Szenti 9 Jan 2024 02:50 The answer to your question is in the FAQ, page How to write Python solutions. |
|
|