Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
print only strings in list python
Johnny
Programming language:
Python
2021-06-19 04:58:22
0
Q:
print only strings in list python
saleh sharif
Code:
Python
2021-06-23 00:46:18
list1 = [1, 'string', 2, 'string2'] for ele in list1: if(type(ele) == str): print(ele)
0
Tags
string
python
list
int
strings
print
Related
print string elements in list python
python substring in string
python program to get all the integers in a given string
find string in string python
python find string in list
python print a specific word of a string
how to print multiple strings on one line in python
print multiple strings in python
find common string in two strings python
python print every character in list as string
how are strings stored internally in python 3
print string python
get text between two strings python
python find all elements of substring in string
find substring in string python
how to print a string in python
print first word of a string python and return it
python find string in string
New to Communities?
Join the community