Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to get any letter of a string python

Random = "Whatever"#you can put anything here
words2 = Random.split(" ")
print('number of letters:')#you can delete this line...
print(len(Random))#and this one. these lines just Tell you how many 
#letters there are
while True:#you can get rid of this loop if you want
    ask = int(input("what letter do you want?"))
    print(Random[ask-1])
Comment

PREVIOUS NEXT
Code Example
Python :: python array 
Python :: get tweet by its id 
Python :: how to get median mode average of a python list 
Python :: python replace 
Python :: pandas filter rows that are in a list 
Python :: planets list 
Python :: Program for length of the shortest word 
Python :: DLL Injection in python 
Python :: setattr python 
Python :: Iniciar servidor en Django 
Python :: delete cell in jupyter notebook 
Python :: how to make an int into a string python 
Python :: import all csv python 
Python :: Flatten List in Python Using NumPy Flatten 
Python :: area of trapezium 
Python :: Groups the DataFrame using the specified columns 
Python :: python remove lines of string 
Python :: turtle keep window open 
Python :: bringing last column to first: Pandas 
Python :: reading doc in python 
Python :: python - regexp to find part of an email address 
Python :: extract text from pdf python 
Python :: concatenation in python 3 
Python :: mean squared error 
Python :: python string to list of int 
Python :: xpath start-with python 
Python :: file methods in python 
Python :: python to run excel macro 
Python :: python create a dictionary of integers 
Python :: settings.debug django 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =