or tag

453 questions


2 answers
59 views
0
Java's standard unreachable statement

I wrote the code that came out of the standard Java code and tried it.public class SampleNameFor { public static void main(String[] args) { Loop1:for (int i = 2; i <= 9; i++) { for (int j = 1; j ...

2 years ago

1 answers
149 views
0
I have a question about creating an Excel file!!!

import openpyxl# You must create an empty excel file named sample.xlsx in the same folder as the py file.excel_document = openpyxl.load_workbook('same.xlsx')sheet1 = excel_document.get_sheet_by_name('...

2 years ago

1 answers
94 views
0
I have a question about the value of for statement, break, and return.

Here in the for statementWhat is the meaning of Return? And I want to know when you use break and return.

2 years ago

1 answers
50 views
0
Hello. I'm making a square calculator, but I'm getting a grammatical error.

def divided_by(x,y): return x**ydef main(): under_input = float(Enter the bottom value.) explicit_input = float(input(Enter an exponential value)) if exponential_input is (1 > exponential_input) p...

2 years ago

2 answers
88 views
0
This is a c++ char generator initialization question

#include<iostream>using namespace std;class Test{ private: char* str; public: Test(char* name){ str=name; } void hello(void){ cout << str; }};int main(){ Test ptr(lee); ptr.hello(); ...


2 answers
78 views
0
To click only the button for a particular pattern id during Python crawling

If there are multiple buttons with similar IDs, click all buttons and If you don't have the id of that button, you want to create a code that doesn't do anythingIn the case of similar IDs, the front i...


1 answers
137 views
0
I have a question for Python web crawling.

Hi, everyone.I'm a beginner at Python.I would like to print out the equipment name and usage time on the equipment monitoring site using web crawling.This code has been configured so far, and if you p...

2 years ago

1 answers
101 views
0
There was a problem coding the vending machine with Python. TypeError: '<' not supported between instances of 'tuple' and 'int'

def show_menu(): print() print ([Vending Machine Sales Menu]) for i in range(0, len(drink_menu)): if i%10==0: print() print(|,i+1,.,drink_menu[i],:,drink_price[i],|,end= )def buy(num): if money <...

2 years ago

1 answers
65 views
0
Python for Moon

Trying to create a program to find specific characters in a stringPlease point out the errors=input('sentence:')w=input ('Find words:')for i in s: if i==w: print (i+'found at position') else: pri...

2 years ago

1 answers
97 views
0
Hello! I want to know why infinite loops occur.

Hello!I fell into an infinite loop while practicing c, but I can't solve it.Here's the situation.If you receive an integer between 1 and 10, you have to exit the for statement and re-enter it when you...

2 years ago
« - 19 - »

© 2024 OneMinuteCode. All rights reserved.