All Questions

19771 questions


1 answers
345 views
0
filter() function

# General functiondef even(x): if x % 2 == 0: return x# Listtwo = [i for i in range(10)]# filter() + general functionlist(filter(even, two))The expected output of is [0, 2, 4, 6, 8]The actual output ...

1 years ago

1 answers
297 views
0
I want to solve the infinitive equation of the reciprocal sum.

I am using Google Collaboration.The sum of reciprocals of different natural numbers is 11/x_1+1/x_2+‥‥+1/x_n=1(x_1>x_2>‥‥>x_n)I would like to find out the number of sets (x_1 to x_n) for each...


1 answers
407 views
0
swiftui alert 'navigationBarLeading' is unavailable in macOS

When I try to add a bar item in swiftui, I get the following alert: 'navigationBarLeading' is unavailable in macOSI thought it was an update, but it didn't go away.Is the bar item marked differently?

1 years ago

1 answers
286 views
0
a method of replicating a row based on the value of a particular column in pandas

pandas.DataFrame is looking for a way to duplicate rows for the number of values in a particular column.The source code shown below replicates the rows so that they have the same number as the values ...

1 years ago

1 answers
339 views
0
How to Resolve Errors

from traillets.config.application import loggingdef AND(a,b): A = a * b return A def OR(a,b): if a == 1: if b == 1: A = 1 else: A = 0def NOT(a): if a == 1: A = 0 if a == 0: A = 1 return Adef ha(a,...

1 years ago

1 answers
328 views
0
DISPLAYING METHOD OF DOT PICTURE FONT HOMEWORK ON BROWSER GAME

I'm trying to create a dot-picture game with HTML, CSS, and JavaScript, but I don't know how to display fonts that aren't on the other PC.The library uses p5.js, and I have no other plans to use it.

1 years ago

1 answers
388 views
0
DISPLAYING METHOD OF DOT PICTURE FONT HOMEWORK ON BROWSER GAME

I'm trying to create a dot-picture game with HTML, CSS, and JavaScript, but I don't know how to display fonts that aren't on the other PC.The library uses p5.js, and I have no other plans to use it.

1 years ago

2 answers
345 views
0
(python) Recreation of round function algorithms. rounding off a decimal point

I'm trying to recreate the round function algorithm, but I'm not sure about the decimal range processing part.That's what we've done so far.def my_round(number, ndgits=None): if number<0: return in...

1 years ago

1 answers
281 views
0
Splitting Two Strings with Half-width Spaces

Divide two strings by half-width space (equivalent to paiza rank D)Attempt to run with split method results in an error.Please let me know.process.stdin.resume();process.stdin.setEncoding('utf8');varl...

1 years ago

1 answers
407 views
0
Unable to install psutil on Python

I'm a Python beginner.After installing Python, I try to install with pip install psutil, but I get a photo-like error.The same goes for trying to install jupyter notebook or mojimoji.The Python versio...

« - 73 - »

© 2024 OneMinuteCode. All rights reserved.