Questions tagged [alphabet]

319 questions
0
votes
1 answer

How to print next letters until Z and continue to A?

This code prints the next letters of what I input. For example, I input "v", it will show vwxyz, but I want it to print the others too, like vwxyzabc..... int main() { char a; int flag = 0; scanf("%c", &a); while (a <= 'z') { …
krisssz
  • 65
  • 7
0
votes
0 answers

convert alphabet string to list

so I read this: Alphabet range in Python And I have a question and since I can't comment (reputation) I do it like this. On of the awnsers is that you can make a list of a string consisting of all letters doing this:…
Bas
  • 1
  • 2
0
votes
1 answer

How to check the validity of a string input from GUI in python

I'm taking the input for a name in Tkinter, but it's giving an error when I want to check if only alphabets are entered: t1=Label(text="Name:") t1.place(x=40,y=100) name=Entry(t) if name.isalpha(): print("Valid") else: print("Invalid") How…
0
votes
0 answers

Select the correct interval for a value in python

i have a list of sorted numbers that is seen as a list of intervals, called intervals intervals array([[0.0417634 ], [0.05653888], [0.02597058], [0.01339346], [0.0133483 ], [0.24812345], [0.27849978], [0.2663314 ], …
Fabio G
  • 29
  • 7
0
votes
1 answer

Create an insert using Alphabet expression

I have alphabet column like using this CTE: ;with cte_tally as ( select row_number() over (order by (select 1)) as n from sys.all_columns ) select char(n) as alpha from cte_tally where (n > 64 and n < 91) ; go my question is how can I get…
Leon
  • 137
  • 9
0
votes
1 answer

How do I link random numbers to letters of the alphabet, no duplicates

My aim is to ultimately create a puzzle that can allow users to input a phrase, encode it to numbers and then allow them to figure out the phrase by slowly working out what number is what for the alphabet. Although I don't want a=1, b=2 ect because…
0
votes
3 answers

How python choose the max letters from string

Please tell me why python choose this: print(max("NEW new")) OUTPUT: w Had i understood correctly: lowercase in python on the first place, on the second place uppercase? Thanks!
RjDeVera
  • 41
  • 1
  • 6
0
votes
1 answer

PHP dynamic creation of alphabet

I would like to create some arrys. First of all I would like to tell you what it is about so that you understand why I am doing this: Cryptography. I want create an array with the alphabet. such as $a1 = array("a"=>"b",…
Richard
  • 1,543
  • 3
  • 25
  • 49
0
votes
4 answers

Python assignmen intvolving the conversion of the charaters within a string into numbers

Good afternoon, I being some issues trying to run this batch of code that involves converting the individual letter characters within a string into numbers. The specific letters of the alphabet are compartmentalized into distinct grouping based off…
0
votes
7 answers

Simplest code to check if a string contains all the alphabet using JavaScript

This is the simplest solution I found. It returns true or false for the given string if it contains all letters of the alphabet in it or not. Here is the code I found: new Set("A quick brown fox jumps over the lazy dog" .toLowerCase() …
rockey91
  • 142
  • 2
  • 10
0
votes
1 answer

Python get character position matches between 2 strings

I'm looking to encode text using a custom alphabet, while I have a decoder for such a thing, I'm finding encoding more difficult. Attempted string.find, string.index, itertools and several loop attempts. I would like to take the position, convert it…
Luke Acha
  • 1
  • 2
0
votes
1 answer

Difference between ∑ and ∑1

I learn a deterministic final automat, nondeterministic,regex... And I found that is important to know a difference between ∑ and ∑1 since they both the same if ∑={0,1}, but I will answer that ∑1 is result of concatenation epsilon and 0,and the…
0
votes
1 answer

How to create an alphabet with RexExp object?

Is there any solution to create an alphabet with RexExp object? Is this possible ? As the result I wish to obtain an array with the length of 26 latin letters (law case). I tried to test my RegExp pattern /a-z+/g with help of String replace method,…
o_s_a_k_a
  • 71
  • 1
  • 12
0
votes
1 answer

Username must begin with a letter - PHP

My objective is to let the form warn a user if the username input does not start with a letter. Unfortunately, the condition is still true despite the entered username starting with a letter. The code below is the variable which contains an array…
0
votes
0 answers

Building a binary matrix with geohashes in r

I want to build a binary matrix in R for each geohash that i have in a dataframe using alphabet letters and numbers. Therefore, i want that each geohash is matched with 1 if the corresponding letter or number is matched with alphabet or numbers, or…
user6345079