47 questions
Enter a formula (*for example, 20*40): 21.1 + 30.021.100000 + 30.000000 = 51.100000a,b=input (Enter a formula (*for example, 20*40):)split()I know how to write an input function in this form, but I do...
What kind of method should I use to write conditions across lines for if?if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_somethingThis way, code3 is on the same li...
largest = Nonesmallest = Nonewhile True: num = input(Enter a number: ) if num == done : break print(num)print(Maximum, largest)The above is the hint code. When you output Done, you repeatedly process ...
a=input('Enter multiple numbers:')a=list(a)try: if a.index('%') : del a[a.index('%')]elif a.index(' ') : del a[a.index(' ')]except : pass for i in range(len(a)) : print('\u2665' * 2*int(a.po...
import socketimport jsonimport pymysqlHOST = ''PORT = i = 0list_data =[]s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind((HOST, PORT))s.listen(1)while True : try : conn,addr = s.accept() ...
When you are coding a red black tree and debug granpa!= nullptr even though it is true, the entire phrase is skipped.I stopped it in debugging mode and checked it by pressing f11, but I only ran the l...
if((num1 != 0 && num2 != 0 && num1 == num2) || (num1 != 0 && num2 != 0 && num1 == num2)) {Photo examples}Can you tie the conditions in the if in the form of the picture...
There are times when you get confused by the conditional expression in the if statement.if(num%10) ~~~~else ~~~~If I divide num by 10 and I can't find the rest, do I go to else?How do I understand?
Using elif,I'm working on a parking calculation program. I'm going to make a program like thisYou parked for a few minutes How much do you have to pay?How do I program to make it float?!
This is a question that enters three integers and indicates whether each integer is even or odd. int a, b,c; scanf_s(%d%d%d, &a,&b,&c); if (a % 2 == 0) { printf(%s\n, even); } else if (a ...
« | - 3 - | » |
581 PHP ssh2_scp_send fails to send files as intended
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.