Questions tagged [letter]

a character representing one or more of the sounds used in speech; any of the symbols of an alphabet.

448 questions
-4
votes
3 answers

How to add new line after number of word

i find a code to seperate line, but it cut hafl of word "A very very long str" \n "ing from user input". so i want to ask how to keep the original word. its mean add \n after a number of word? # inp = "A very very long string from user input" #…
-4
votes
4 answers

Randomly Generate Letters in python

I want to generate 10 unique English letters and append them to a list in Python. This is what I tried: for i in range(10): rand = random.choice(string.ascii_letters) print(rand)
-4
votes
1 answer

Filtering ranges of letters in Javascript

I have to create a program that takes the first letter of a prompt, and if that letter is between a and k, then it has to produce a certain output, if it's between l and p another and so on. Is there a way to do this without writing every letter of…
-4
votes
1 answer

Creating a string from loop results in java

I need to be able to save the loop results to a string to be able to manipulate the user output. No arrays I've attempted to convert to string inside the loop which does not make much sense. I can't figure another way to save the results unless I…
Shelly
  • 25
  • 1
  • 5
-4
votes
2 answers

Assigning Letters To variable

This is the code i have made and whatever the score is the output is always "Grade: ", I want it to output a letter equevalent but it will not. I have tried using commas but nothing seems to work. I have tied looking around but cannot find a answer…
Alzz_HD
  • 11
  • 6
-4
votes
2 answers

How can i check a string whether it contains letters of a given word by user

how can i check a string whether it contains letters of a given word by user like Enter the pattern string: shl Enter a string: school shl occurs in ”school” Enter a string: okul shl does NOT occur in ”okul” Enter a string: salaries are neither…
Makinist
  • 39
  • 1
  • 9
-4
votes
3 answers

How to extract first letters from different words in a string in c#

I want to extract first letter of each word in a string. I have done a lot of googling and still without any aid. For example,string text = "I Hate Programming"; The desired answer should be like: IHP I know you guys are very good, I'm just…
gematt
  • 13
  • 1
  • 2
-5
votes
1 answer

How to turn a word into capitals with more than 14 letters?

I want a program that will convert a word into capitals and it doesn't matter how many letters it is. Now I can go up to 14. print(upper("hello")) print(upper("dissatisfaction")) says "HELLO" but "DISSATISFACTIOn" This is the program I have. I…
Lucky
  • 1
  • 1
-5
votes
2 answers

How can I find a certain letter in a String in C#?

How can I search a certain letter (char) in a String? I have to code a little riddle. You basicalley have to guess the right letters of an unknown word. Only the first letter is shown. Example: "Apple" A____ --> that's what you actually see. Now,…
mxy
  • 1
  • 1
  • 2
-5
votes
1 answer

javascript (iQuery ) first letter is exclamation

I want to check is the first letter of variable a (! - Exclamation ) Have any here an example for me ? i found other things but not for first letter is exclamation. thanks so much for reply me
-6
votes
1 answer

how to declare 3d letter array in c language

i wanna declare this array in c: { {{'7','P','Q','R','S'},{'8','T','U','V'},{'9','W','X','Y','Z'},{'÷'}}, {{'4','G','H','I'},{'5','J','K','L'},{'6','M','N','O'},{'×'}}, {{'1','.','?',',','!'},{'2','A','B','C'},{'3','D','E','F'},{'-'}}, …
-7
votes
1 answer

Is it possible to avoid integers,floats and special characters using try-except statement only?

I'm trying to make a code that allows only letters. I know we can do this using isalpha() method. But, I'm looking for any other different solutions something like try-except?
Python learner
  • 1,159
  • 1
  • 8
  • 20
1 2 3
29
30