Questions tagged [alphabet]
The alphabet tag has no usage guidance.
272
questions
0
votes
3answers
43 views
How to convert an input number string to a sentence according to alphabetical mapping?
I'm trying to code a simple function where number strings are converted to the corresponding sentence. Each number represents a letter (1=A, 2=B...26=Z). Words in the sentence are separated by '+' and ...
0
votes
1answer
33 views
How to create an iterator to generate an alphabet tabula in list form
I would like to create an iterator to generate an alphabet tabula in list form. From a to z, from b to a , from c to b and so on stopping on z to y. The aim is to have a list of lists like these:
...
2
votes
2answers
90 views
How to use a secondary alphabetical sort on a string list of names?
I'm trying a way that when given a string of names which are first and last names, where names are split by ; and first name split to last name by : ->
"Fred:Corwill;Wilfred:Corwill;Barney:...
1
vote
3answers
30 views
Is there a way of creating a constantly changing alphabet between a-z to appear
something like this but for alphabets:
<p id="result"></p> <!-- this is code for random num gen ,I need something like this for alphabet.-->
<script>
var ...
0
votes
1answer
69 views
SwiftUI - How to add “letters sections” and alphabet jumper in a Form?
How can I make a Form in which the elements are automatically divided into sections based on their first letter and add to the right the alphabet jumper to show the elements starting by the selected ...
1
vote
2answers
86 views
Change numbers to letters in a int array and return String in java
I have an int array (b[]) with a random length and random integers. I want to leave integers lower than 9 to how they are, i want to change the numbers 9-35 to letters A-Z. and i want do put () ...
0
votes
2answers
27 views
I'm trying to count the percentage of every letter in a document by using a scanner, but I can't figure out how to correctly compute and display it
First I uploaded the file I'm using, the constitution. Then, I created two arrays, one for the length of the alphabet, the second to compute the frequency. I created a while loop to read every line in ...
1
vote
1answer
74 views
Splitting when meeting another alphabet [closed]
Let say I have a string:
欧珑 无极乌龙 Atelier Cologne Oolang Infini, 2010
How can I split it in a array of two strings? ['欧珑 无极乌龙','Atelier Cologne Oolang Infini, 2010']
I tried:
names = re.split(r'([a-zA-...
0
votes
0answers
21 views
Taxonomy term links grouped by alphabets in WordPress
In my website, I have created a custom taxonomy term called. All links of this term appear in the same page here. I managed to make them appear in groups in that page, by first letter of the alphabet ...
-1
votes
2answers
82 views
Count capital letters from file c++
// C++ program to count the uppercase
#include<iostream>
#include<fstream>
#include <string>
using namespace std;
// Function to count uppercase
int Count ( string str )
{
int ...
1
vote
1answer
122 views
Delphi create letters with for loop
As you know in Excel column names are letters. When it reaches Z it continues with AA-AB-AC. Is it possible to make a similar function in Delphi XE7 + for loop?
I've tried:
var
i:integer;
str:string;
...
1
vote
2answers
44 views
Sorting data with numbers first and alphabet next in java [duplicate]
Hi I have a list of input as a string and it will contain full digits{digits} or a combination of {character}{digits} I want in sorting in the below order using java.
input : { "1", "21&...
0
votes
1answer
131 views
Caesar Cipher code in Python: convert to unicode + shift value then return back as encrypted message
I need to ask the user for 2 inputs:
enter a message
enter a shift value
Then take their message and convert it to unicode using the ord() function.
Then add their shift value to come up with a new ...
0
votes
3answers
33 views
Swapping elements in a list based on their match in a dictionary
Alright so basically I'm trying to write a function that takes a string and a dictionary that relates every letter in the alphabet to another letter in the alphabet. The function then splits the ...
-5
votes
1answer
51 views
Function that concatenates all the single letter (alphabet) characters
Write a function, that concatenates all the single letter (alphabet) characters
arguments and returns a them as one string. This function should ignore all none single alphabet
arguments.
For example,...
0
votes
1answer
100 views
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;
...
6
votes
6answers
606 views
How to get an easier way of generating the alphabet in C++?
i am trying to make a project,to experiment and learn C++, i didnt finish making it,but what it does is you type in a 3 or 4 (the variable noc) word and the program runs through all the possible (noc) ...
0
votes
0answers
26 views
Why are alphabets less accurate in mnist data?(neural network)
I have implemented a really basic neural network in Python. This program learns mnist data to determine numbers from 0 to 9 and measures performance.
The characteristic of the data is the ...
0
votes
0answers
31 views
Removing all characters except alphabet, spaces and korean characters in notepad++
i want to remove all characters except a-z, spaces and korean character in notepad++
Can someone please provide some suggestions. thank you.
Before:
🐽1. to startled
🐽2.temperature
🐽3. to grow
...
-1
votes
4answers
295 views
Taking up some lines of text and analyzing
I need to break up a line of text entry into 4 parts to be analyzed. Does anyone know how to code so I take in 4 lines of text, 40 characters per line, and analyze? Thank you for any help on this ...
1
vote
6answers
191 views
Counting the frequency of letters of the alphabet in some lines of text
I tried this program but it only printed out the frequency of some letters. Could someone tell my what I did wrong? Any help would be greatly appreciated.
Yours truly,
Quang Pham
This is what ...
0
votes
0answers
21 views
convert alphabet string to list [duplicate]
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 ...
1
vote
1answer
26 views
alphabet tableau in python
alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
matrix = []
for i in range(26):
change = alphabet[0]
...
0
votes
1answer
46 views
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():
...
0
votes
0answers
141 views
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....
0
votes
1answer
39 views
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 &...
1
vote
2answers
52 views
How to cycle through the alphabet index in python? [duplicate]
Question:
How can you tell an extrovert from an introvert at NSA? Va gur ryringbef, gur rkgebireg ybbxf ng gur BGURE thl'f fubrf.
I found this joke on USENET, but the punchline is scrambled. Maybe ...
0
votes
1answer
56 views
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 ...
0
votes
3answers
342 views
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!
1
vote
3answers
157 views
How to identify string is containing only number?
How to print only text in a string? I want to print only abc from.
string numtext = "abc123";
Here is the full code:
#include <stdio.h>
int main()
{
string text = "abc123";
if (text....
-2
votes
1answer
23 views
Setting values of a 2 dimensional array in java
I'm attempting to set up a 2 dimensional array of the alphabet in java.
My first attempt (doesn't work):
char[][] arr=new char[4][7];
for(int r=0; r<arr.length; r++){
for(int c=0; c<arr[r]....
-1
votes
1answer
96 views
Ordering file content in alphabetic order using Python
In Python, I'm getting a list with emptiness ( i.e. [ ] ) in it and testing mechanics indicate that its not sorting the content properly. It fails to pass the sorting of items contained in a file. ...
2
votes
0answers
202 views
How can I save the tabula recta in an Array
I need to create a program, with GUI which can encrypt and decrypt the vigenere cipher. And I would start with saving the tabula recta in an array but I dont really have any experience with doing "...
-2
votes
1answer
34 views
Looping in list (get first after the last)
I'm trying to make an easy dummy thing but I kinda stopped at something i never encounter. Making some kind of translator which should work like this:
word = "hello"
h => i (+1 position in ...
1
vote
2answers
1k views
How to make 2 characters be seen as one letter?
I'm creating a game which will be in the Welsh language. Purpose of the game is to help children learn to spell certain words. So basically when a word is spoken out, they have to spell the word by ...
-1
votes
2answers
98 views
I have to make a pyramid of letters in the middle of the screen i am able to print the pyramide but can not seem to get the alphabet and to go in
https://i.stack.imgur.com/5rpBR.png
https://i.stack.imgur.com/ZH04N.png
def full_pyramid(rows):
print('\nFull pyramid...\n')
for i in range(rows):
print(' '*(rows-i-1) + '*'*(2*i+1))
string =...
5
votes
3answers
330 views
Continous alphabetic list in python and getting every value of it
I've almost the same problem like this one:
How to make a continuous alphabetic list python (from a-z then from aa, ab, ac etc)
But, I am doing a list in gui like excel, where on the vertical header ...
1
vote
3answers
437 views
How to create a circular Alphabet in Python so that the letter after z is a and the letter before a is z
Is there a Function in Python to easily create a circular Alphabet, so that the letter after z is a and the letter before a is z?
I tried something with chr() and .join(Alphabet), but that didn't ...
1
vote
1answer
324 views
How do I iterate over all words up to permutations of the alphabet in Python?
This doesn't seem like such a niche problem to me, but I surprisingly can't find anything about it online. Suppose you have an alphabet set (for me the first m letters of the usual alphabet) and you ...
0
votes
4answers
57 views
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 ...
0
votes
7answers
2k views
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 ...
3
votes
0answers
340 views
Turing Machine Blank Symbol After Halting
Given a Turing Machine with input alphabet Σ and tape alphabet Γ. Alphabet Σ does not include the blank symbol, Γ does. Let's represent the blank symbol as _ . Say this Turing ...
1
vote
4answers
827 views
Finding nth letter in alphabet from current letter
So I am trying to take a letter from the alphabet, input by the user, and then finding the letter that is 10 letters away, and I want it to wrap around the alphabet if the letter is 'z' or 'y' or ...
-1
votes
2answers
165 views
Why does my C# function returning the position of a letter in the alphabet work?
I have a function that returns the position of a letter in the alphabet. How does it work?
This is how my C# looks like:
private int CalculateLetterPosition(char cCharacter)
{
int ...
0
votes
1answer
44 views
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 ...
0
votes
1answer
38 views
Difference between ∑ and ∑1 [closed]
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 ...
4
votes
8answers
1k views
Javascript reverse alphabet
so I've been messing around with the .replace() function lately and wanted to make it reverse whatever the user inputs.
(Aka a -> z, A -> Z, b -> y, B -> Y, ...)
I'm using function stacking, so I ...
0
votes
1answer
47 views
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 ...
0
votes
1answer
887 views
Username must begin with a letter - PHP [duplicate]
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 ...
5
votes
3answers
7k views
flutter listview alphabet index
How to get the finger movement event in flutter like 'recyclerview alphabet index in android' check the sample image.
I have created a Positioned alphabet index listview but I can't find the current ...