python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
print python pattern for given value of N
Example input: 7
Output:
ABCDEFGGFEDCBA
ABCDEF FEDCBA
ABCDE EDCBA
ABCD DCBA
ABC CBA
AB BA
A A
Code:
a = int(input())
for i in range(a):
p = 65
for j in ran...
shri harshan
Votes: 0
Answers: 1
filter rows in a pandas dataframe from substrings (keys) in a list and also add new column "key" to dataframe containing the substring matched (key)
Iam new to python. The below code filter rows in a dataframe df based on substrings (keys) in a list and add a new column say 'Key" containing the substring (all of them). The dataframe contain...
Ravi
Votes: 0
Answers: 1
Tcl string compare and replace with asterisk
I want to compare two strings in TCL and replace the unmatched character with asterisk.
Core_cpuss_5/loop2/hex_reg[89]cpu_ip[45]_reg10/D[23]
Core_cpuss_5/loop2/hex_reg[56]cpu_ip[12]_reg5/D[33]
Output ...
gstekboy
Votes: 0
Answers: 1
Regex: Case-insensitive Matching with Case-sensitive Exceptions
Use case: I have a large bulk of text I need to match, line by line, against a large list of terms to audit for consistency etc.
What I do: Take the term list, order by length (desc) to ensure longer ...
Markus AO
Votes: 0
Answers: 0