b=input("input") if int(b)==int: print("Just write letters,") elif str("b")==str: print ("Just write the numbers")
This prevents the print value from running when you write down numbers, and errors occur when you write down characters. What should I do?
b=input("input") if b.isdigit(): print ("Write only letters") elif b.isalpha(): print ("Just write the numbers") else: print ("Mixed String")
563 Understanding How to Configure Google API Key
997 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
829 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
561 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
567 PHP ssh2_scp_send fails to send files as intended
© 2024 OneMinuteCode. All rights reserved.