Horje
Splitting strings in Python without split() Code Example
Splitting strings in Python without split()
sentence = 'This is a sentence'
word=""
for w in sentence :
    if w.isalpha():
        word=word+w

    elif not w.isalpha():
      print(word)
      word=""
print(word)




Python

Related
strftime python multiple formats Code Example strftime python multiple formats Code Example
Python int to binary string Code Example Python int to binary string Code Example
pandas calculate iqr Code Example pandas calculate iqr Code Example
higlight words in python Code Example higlight words in python Code Example
element wise subtraction python list Code Example element wise subtraction python list Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8