19771 questions
# 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 ...
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...
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?
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 ...
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,...
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.
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.
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...
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...
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.