223 questions
I'd like to change strings such as January 20th to a date form, but I think it'll be difficult to use strptime() because the form has no zeros in front of it like July 4th.Can't we simply change strin...
const arr = ['a', 'b', 'c', 'd', 'e']; var x = b || d || g || h || z; const the_number_of_x = arr.filter(i => i === x).length; if (the_number_of_x === 2) { console.log(success!) } } else { consol...
#include<stdio.h>#include<ctype.h>#define size 100int main(){ char s[size] = Applea; char c = ; c = getchar(); int i, j; int n = 100; for (i = 0; i < n; i++) { if (s[i] == (char)c) { ...
Hello. ^^I was making a programSelf the string delivered as a factor.Can we replace it with a variable?I'm asking this question because I'mFor example, this is the case.def a(self, string) : self.stri...
In Python, it says that to change the case of a string using the for statement, it should be the code below, but I don't know why it should be specified as new_text = str()!text = input('English case ...
a = input()print(a[:2],shprint(a[3:]Minutes)It comes out like this because I used and but how do I print out without spacing?(I want to minimize the running time!))
Hi, everyone. I'd like to extract a specific string with Python.I want to extract only the English part.Question number 1 (only the English part changes, and the rest are all the same structure.) [Inf...
b=2A= Oh, I really want to eat 'crunchy' \jeon\.B=A[5:9]C=B.replace(B), 'Brown'C=C.replace(B),'Yellow',b)print(C)When you print out a C, 'Yellow' 'Yellow' Shouldn't it come out as? I'm asking because ...
« | - 22 - | » |
© 2024 OneMinuteCode. All rights reserved.