How do I get the 65 and the A to print on the same line with a space between them like on the expected Output?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

How do I get the 65 and the A to print on the same line with a space between them like on the expected Output?

Post by answerhappygod »

How do I get the 65 and the A to print on the same line with a
space between them like on the expected Output?
How Do I Get The 65 And The A To Print On The Same Line With A Space Between Them Like On The Expected Output 1
How Do I Get The 65 And The A To Print On The Same Line With A Space Between Them Like On The Expected Output 1 (58.57 KiB) Viewed 46 times
1 num = int(input("Input a number: ")) 2 3 while num <= 255: if num < 33: print("Error") num= int(input("Input a number: ")) elif num> 126: print("Error") num = int(input("Input a number: ")) else: print (num) print (chr(num)) 12 13 num = int(input("Input a number: ")) Input a number: 65 65 A Input a number: 31 Error Input a number: 127 Error Input a number: 256 Sample input and output: Below is the output when the numbers 65, 31, 127, and 256 are entered consecutively. Input a number: 65 65 A Input a number: 31 Error Input a number: 127 Error Input a number: 256 □N34567890 ==== NM 10 11
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply