Display a Set in Serial Order in Python
a = {5,2,3,1,4}
# printing set variable
print("a = ", a)
# data type of variable a
print(type(a))
Output
a = {1, 2, 3, 4, 5}
<class 'set'>
Display a Set in Serial Order in Python
a = {5,2,3,1,4}
# printing set variable
print("a = ", a)
# data type of variable a
print(type(a))
Output
a = {1, 2, 3, 4, 5}
<class 'set'>
Count Upper Case and Lower Case Word in a string (Python) def string_test(s): d={"UPPER_CASE":0, "LOWER_CASE":...
0 comments:
Post a Comment
gurnoorsingh5974@gmail.com