Maybe:

`if char !=' ':`

Rather than

`if char !='':`

?

-steve

> On Dec 14, 2020, at 11:27 PM, Anandraj Jaganathan <[email protected]> 
> wrote:
> 
> Hi All,
> 
> Need small help to get output on the below code
> 
> for char in 'Python is easy':
>         if char !='':
>                 print(char, end='')
>                 continue
>         else:
>                 break
> 
> I want print only ==> easy
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/6939D7DE-27B2-4B22-A34A-7EE8BC6B8AAE%40gmail.com.

Reply via email to