i'm learning Python and have began with Google's Python Automation Beginner course. Idk if i chose it right but im already in week 4 and now have started facing
I tried to write a custom type from a book, my compiler gives an error E0393 using a pointer to an incomplete type of the "String" class::Srep" is not allowed i
I want to remove consecutive "a" substrings and replace them with one "a" from a string without importing any packages. For example, I want to get abbccca from
bool check(const char *text) { char c; while (c = *text++) { if ((c & 0x80) && ((*text) & 0x80)) { return true;
i am trying to create a program for string anagram that follows these conditions: method should allow only letters, white space, commas and dots in an anagram.
I've tryed to print out some array of strings but faced error: excess elements in char array initializer Please make a hint what's worng with this code? Step 1
I want to write a function that concatenates multiple strings into one one string, but each part is marked with quotation marks and separated by a comma. The fu
I have the following list: values = ['A', 'C', 'B', 'D'] Is there a way I can get it to output the list as the following string? result = 'AC
I'm trying to implement a function which receives a variable number of strings and returns characters that appear at least in two strings: test_strings = ["hel
I have read about "https://github.com/golang/go/issues/25484" about no-copy conversion from []byte to string. I am wondering if there is a way to convert a str
I am trying to find a way to escape the dollar sign within the sed command in a bash script. I have found here tons of answers that say that you need to put fou
Below is the python block code, def compute_hcf(x, y): while(y): x, y = y, x % y return x which I wanted to convert into single line like below, d
I tried coderbyte and looks something is wrong with it. The first challenge is simply to reverse a string. I did this in java: import java.util.*; import java
Given two numbers in string format (eg. '10.23' and '25.69') how can I get their sum without converting the string into numbers? (eg '35.92') I do not want to c
I am working with a dataset that has column with some underscores. There is a patter to it but they are different patterns, as shown below ID Col1 1029
Why is the if block not executed in the code below? #include <stdio.h> #include <stdlib.h> int main() { printf("--------------------------------
I'm trying to filter out year out of this array of objects (in React) 2021-12-20, 2021-12-21, 2021-12-22, (...) 2022-01-28, 2022-01-31, 2022-02-01, It has 100
How to write a python computer program that will take any valid arithmetic expression as a string and will output a list (or array of string)
I try to convert my float64 variable into str with : data['Abo_str'] = data['Abo'].isnull().astype(str) But the result is False. How can I do it ? Thx
I need to print all words from the text file which includes substring, how can I add to the code? The code which I have is printed below #include <iostream&g