Results for string
I want my variables contains only character in C without anything else like special characters or number and not empty. What is the best solution for ...
here is my input: 3 Programming in C 21.5 Programming in VB 18.5 Programming in Delphi 25.0 and here is my code: #include<stdio.h> #include<s...
I have seen few examples on how to convert string variable to raw one using interpolation, but it doesn't work for me: import json j = '{"...
I have a List of strings ["pana", "open","peno","alp","palp"] and i need to sort them by having the letter "p", then alphabetically: so the result sho...
I have a dataframe and would like to check if a column value contains another column value. name1 name2 0 aa aab 1 xyz x the below does...
I have a string const s = 'pong-ping-bink-ping-pong-ping-donk'; I want to split it by all words other than ping or pong with regex. For this...
I have a for loop in randomString() that puts a random character into the first x indexes of a string, where x This is the code that I have: #include...
I am trying to separate the following list: ['\nYear\nMonth\nValue\n', '\n2023\nAugust\n(p) 164.06\n', '\n2023\nJuly\n(sf) (r) 148.02\n'] such that th...
Write a program to accept a sentence and perform the following tasks: Count number of vowels and consonants present in each word Generate the outpu...
I have to write function atof() in C but using only pointers and "skeleton" of the code has to look like this: #include <stdio.h> #define SIZE ...
I am new to python and trying to learn the basic just learned how to format string today and couldn't figure out what is wrong with this line of codes...
I have a list of string that I would like to print vertically side by side. from itertools import zip_longest x = ["Please","help"...
I'm trying to do an assignment and every time i try to use a string it crashes and because of this line of code in gs_report.c if (IsProcessorFeatureP...
I was trying a coding challenge and gave up, in the submitted answers for others I found this string formatting method. number = 10 for i in range(1, ...
My program is supposed to take an input file name as a string from user input, and convert the ".in" at the end to ".out". Then both the original and ...
The input is a String, need to make sure each word or phrase that starts with quotes(") also ends with quotes and each word or phrase that ends with q...
Problem: I am making a file interpretation program that needs to read/write Hexadecimal values. At times, there will be a section of hexadecimal that ...
I have two datasets both with different columns however both with names. I wanted to match the names and concatenate the rows to each other df1 df2 ...
So when I'm trying to make buttons for my sidebar, I make a button for every class by using a for loop. for index, course in enumerate(api.pull_course...
I am trying to ascertain whether 2 application version strings are equal in PowerShell and am getting a confusing result: PS C:\> $version = wmic p...
I'm working through the first exercise in John Crickett's coding challenges, which is to create a wc clone that counts the number of lines, bytes, wor...
I have a string Vector as well as a set of index values. The index values can be sometimes negative or positive. But we can use Vector2 to extract ou...
ex02ChildrenInverse <- function(sentence) { assertString(sentence) matches <- regmatches( sentence, regexec('^(.*?)...
/*write a program to insert a string into main string*/ #include <stdio.h> int main() { char text[100], str[20], ins_text[100]; int i =...
program for reverse string : /** * C program to reverse order of words in a string */ #include <stdio.h> #include <string.h> #define MA...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?