Questions tagged [uppercase]

Uppercase characters are capital letters.

Uppercase characters are capital letters: A, B, C, …

In ASCII, they are the characters in the range [A-Z]. But other characters (for instance accented characters like É, È, Ê, À, Î, Ä, Ù) are also considered uppercase.

The counterpart of is .


See also: Letter case on Wikipedia

1373 questions
-2
votes
2 answers

How to make the first or last letter of every word in a string lowercase

Suppose we are passing a string that has several words. Would there be a way to make the first or last letter of each word in the string to be lowercase or uppercase? I tried the text info class but it only offers a capitalization method for every…
-2
votes
2 answers

Why does this code print out only the first letter?

Word=input('please enter a word') def cap(word): for char in word: if char in 'aeiou': return letter.upper() else: return letter result=cap(word) print result
Flahmez
  • 45
  • 1
  • 5
-2
votes
1 answer

Converting char array to upper case in C

I'm trying to convert a char array to upper case in C. But it still prints out in lower case. The logic in conversion function looks okay to me. I don't know if the problem could be that the input I'm passing to this function is member of a…
ARao
  • 261
  • 4
  • 14
-2
votes
2 answers

a word that begins with an uppercase accented (java)

Possible Duplicate: Detecting words that start with an accented uppercase using regular expressions in java ,how to test if a string begins with an uppercase letter accented ,like this Ëfdk,Ä... do you have some ideas
user651584
  • 49
  • 1
  • 7
-2
votes
1 answer

change case from odd/even argument

how should I define a function that takes in a string and returns the string in upper and lowercases according to even and odd indexing? def myfunc(string): for some in string: if string.index%2==0: I have written this much but I do not…
Aditya
  • 1
  • 2
-2
votes
2 answers

Split string at upper/lower case boundaries

I would like to split the following string at the upper/lower-case boundaries. How might I do this in Python and/or with a regex? For example, x = 'aagaaggagatataccATGAATTTGTCGGTTTACCCCAATTTAACCAAAgaaaacctgtacaa' split_boundaries(x) =…
saladi
  • 3,103
  • 6
  • 36
  • 61
-2
votes
2 answers

PYTHON Sort only lowercase letters in place and don't sort numbers

I have to write a code where the user inputs numbers, lowercase letters and uppercase letters. They must then be sorted and printed. The tricky part is that the numbers must stay where they are inputted and must not be sorted. The lowercase letters…
-2
votes
1 answer

VB.net Finding First and Last uppercase letter

For Example : String = Visual BasiC output = V C I have tried searching everywhere but found none, is it possible for vb.net to do this one?
-2
votes
1 answer

Checking for an uppercase in strings inside a list

I have been tasked to do a small mission for a list that contains only strings I need to check the following and create a list if there is a capital letter in the string I need to isolate that word and put it in the new list as a separate word, for…
-2
votes
1 answer

function object that converts string to uppercase

I would like to make a function object that converts a string letters to uppercase so that I can pass that functor to transform() - transform(string.begin(), string.end(), string.begin(), stringToUp()); . I know I can do it otherway, it is just an…
yooo123
  • 67
  • 1
  • 1
  • 11
-2
votes
1 answer

.upper not working in python

I currently have this code num_lines = int(input()) lines = [] tempy = '' ctr = 1 abc = {'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' } for i in range(0, num_lines): tempy = input() …
A Viper
  • 82
  • 1
  • 10
-2
votes
1 answer

uppercase a character in c

I want the the letter "i" to show as uppercase. I have tried to pass the "i" to another char, it is still not working. #include #include int main() { char str[6] = "modify"; char maj = str[4]; printf("%c\n", strupr…
Abdullah
  • 131
  • 1
  • 10
-2
votes
2 answers

First letter to be uppercase and if Name line is empty print out "can't be empty"

System.out.println("Ange följande:"); System.out.print("Name: "); String firstName = keyboard.nextLine(); firstName = firstName.substring(0,1).toUpperCase() + firstName.substring(1).toLowerCase(); while (firstName.equals("")) { …
Marcus
  • 3
  • 2
-2
votes
2 answers

Python code, .rstrip isn't working?

I've searched answers on here and tried implementing them but I think that there is some tiny detail I'm missing. I have a very short python code for a program that is supposed to return the initials with periods of a persons input(for their full…
-2
votes
2 answers

Shouldn't input.charAt(0) return a String? Why input.charAt(0) >= int works?

I've been doing exercise. Write a Java program that takes the user to provide a single character from the alphabet. Print Vowel of Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), or is a string…
rejnol
  • 3
  • 3