0

people, what does != mean in python?

capitalization in python.

16th May 2022, 4:59 PM
Emmanuel Baah
Emmanuel Baah - avatar
6 Answers
+ 2
it means not or not equal to. It returns True if operands on either side are not equal to each other, and returns False if they are equal. example: 5 != 10 #read as 5 is not equal to 10 output is True
16th May 2022, 5:02 PM
Ma Rose Porras
Ma Rose Porras - avatar
0
i will get back to you, Rose. appreciate.
16th May 2022, 5:09 PM
Emmanuel Baah
Emmanuel Baah - avatar
0
a = 'this is python' a = a.split() a =[i.capitalize() if i != 'is' else i for i in a] print('-' .join(a)) check up my code,Rose . how does the "!=" interprets in a code like this?
16th May 2022, 5:19 PM
Emmanuel Baah
Emmanuel Baah - avatar
0
Emmanuel Baah What is the result when you run the code?
16th May 2022, 5:55 PM
Justice
Justice - avatar
0
This-is-python
16th May 2022, 6:00 PM
Emmanuel Baah
Emmanuel Baah - avatar
0
not equal to
17th May 2022, 10:14 AM
Aurora Borealis
Aurora Borealis - avatar