function tag

78 questions


1 answers
104 views
0
Grammar inquiries when used as two-dimensional array parameters

1) When using a two-dimensional array as a parameter for a function, why is it that the horizontal size should be specified...?2) Usually, we receive separate values of col and row that tell us the si...

2 years ago

1 answers
108 views
0
[Java Script] To call a function in another file

Please tell me how to call function1 of file2 from file1.I wish I could only recall that function.

2 years ago

1 answers
130 views
0
I want to enter a function through input in python.

I would like to create a program that calculates the values of A, B, C, and D by receiving the values of A, B, C, and D as inputs and then entering a simple four-factor operation using A, B, C, and D ...

2 years ago

2 answers
109 views
0
I want to get a list that exists in the Python function.

import sysimport osdef get_fruit_list(fruit_list): fruit_path = os.getcwd() + '\\fruit_list.txt' try: fruits = open(fruit_path, 'r') fruit_love = fruits.readlines() for fi in fruit_love: fruit_li...

2 years ago

1 answers
103 views
0
Python function management methods

There are so many functions created while programming with Python that it becomes difficult to manageIn general Python programming, each function (or function that performs similar actions) is used Do...

2 years ago

1 answers
111 views
0
I want to change the baseball game to a function, is there any other way to use global?

Below is a baseball game that I have madeimport random answer = random.sample(range(1,10),3) tr_num = 0 # Variable indicating how many attempts have been madevariable representing the number of st...


1 answers
79 views
0
double recursion

Hi, everyone.In the process of studying double reflexes,I'm asking because I don't understand the following function.I don't quite understand how the function to get the maximum value works, as follow...

2 years ago

1 answers
73 views
0
Location of Python Functions and Variables

class A: def aaa(self): return Nonedef aa(): a.aaa()a = A()print(aa())a = A()class A: def aaa(self): return Nonedef aa(): a.aaa()print(aa())When I use a function or class in Python, can I create a f...

2 years ago

1 answers
107 views
0
I can't delete it

I modified it because it couldn't be deleted

2 years ago

2 answers
150 views
0
Basic Python question! I'm asking this question because I'm a beginner!

How do you make this into Python chords? I squeezed it like this, but exit keeps getting errors. Help me

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.