conditional-statement tag

7 questions


1 answers
102 views
0
I am practicing Python on my own.

I'm going to make a lottery number generator while looking at blogsIt's being applied.import randomnum = int (input (lotto number of games)print(lotto automatic number.)print(----------------------)# ...


2 answers
84 views
0
Is it possible to put various conditions in the form of a list in the if conditional statement?

def chat(): print('start chatbot') while True: inp = input(user :) ifinf == End: print ('Exit chatbot service') break data = Hello or Hi if data: print(How may I help you?) else: print('Will ...


1 answers
100 views
0
I'd like to modify the condition of the Java infinite repetition calculator.

The program below is infinite hanbok calculation.I did it as I was taughtYou don't have to enter the number twiceI want to input two at a time and then input the operator immediately to print it out.A...


1 answers
102 views
0
Python if conditional statement error

# # registration number=rnrn = int (input (Please enter the resident registration number minus (-))year = int(rn/100000000000)month = int(rn/1000000000) - year*100day = int(rn/10000000) - (int(rn/1000...


2 answers
87 views
0
A simple card game problem using conditional statements

[Input Example 1]HEARTRED3CLOVERGREEN1[Output Example 1]player1 win, player2 lose[Input Example 2]CLOVERRED10HEARTGREEN2[Output Example 2]player1 lose, player2 win[Input Example 3]HEARTRED2HEARTGREEN5...


1 answers
103 views
0
A simple Java conditional question.

import java.util.Scanner;public class test { public static void main(String[] arg) { Scanner scan = new Scanner(System.in); System.out.println (Enter an integer: ); int num = scan.nextInt(); if(n...


1 answers
110 views
0
I'm trying to make a Python rhythm game using conditional sentences, but I can't. Please solve it.

import pygameimport randomimport timepygame.init() # Initialize pie gamedis = pygame.display.set_mode(700, 800)) #screen sizeperfect_range = 30left_animes_x = 60left_animes_y = 0right_animes_x = 300ri...


© 2024 OneMinuteCode. All rights reserved.