Umm... I don't know how this is properly phrased but Is there a way to change a variable to all caps? From Akaya to AKAYA?
For example,
Someone says, "Banana."
Someone says, "(\w+)."
fruit = matches[2]
How can Banana become BANANA ?
All Caps
Re: All Caps
use string.upper()
Ex. fruit = string.upper(matches[2])
for other case formats, you can use string.lower() or string.title()
Ex. fruit = string.upper(matches[2])
for other case formats, you can use string.lower() or string.title()
Last edited by Lezard on Mon Sep 03, 2012 8:10 pm, edited 1 time in total.