Accept input only till $ and not wait for enter

How can we make sure we accept characters till user inputs dollar and break as soon as it receives ‘$’ and prints the count and not wait for the enter to print output.

@suyashbhatt09_b949b7de7145bbcd hii suyash see you have to take while loop as see in video that whenever here is dollar it automatically get out of the while loop else it read chracters and while loop keeping executing

@suyashbhatt09_b949b7de7145bbcd
is your doubt resolved??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

hi @suyashbhatt09_b949b7de7145bbcd
u have reopened that doubt… do u still face any difficulty??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.