Not sure why my code keeps printing 'wrong answer'

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=tslCPOrw2ww



Duration: 3:58
8 views
0


Not sure why my code keeps printing 'wrong answer'
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(stackoverflow.com/users/23141183/legomyrego)legomyrego
(stackoverflow.com/users/17582149/samsupertaco)samsupertaco
(stackoverflow.com/users/10302104/smallpepperz)smallpepperz
(stackoverflow.com/users/23141102/shrimant-kasode)Shrimant kasode
(stackoverflow.com/users/17580381/ctrlz)CtrlZ
A special thanks goes out to the (https://stackoverflow.com/questions/77701512/not-sure-why-my-code-keeps-printing-wrong-answer)Stackexchange community

I wish you all a wonderful day! Stay safe :)

inline if-statement python




Other Videos By Peter Schneider


2023-12-27Codereview: Parsing fetched data in TypeScript
2023-12-27Dba: Can conditionals be used in a WHERE condition?
2023-12-27Is it safe to replace a 11.25V laptop battery with 11.1V or 10.8V?
2023-12-27Dba: Can I use different endpoint URLs for the primary replica in a SQL Server Availability Group?
2023-12-27How to remove nth occurrences of a character from string in R?
2023-12-27Apple: What can non-elevated rm -rf /* actually remove on macOS Ventura?
2023-12-27Codereview: Three dimensional data structure in C++
2023-12-27Confusion over theoretical vs actual performance for in-place vec modification
2023-12-27What's the difference between a generic trait and a trait with associative types?
2023-12-27Softwareengineering: Monorepo dilemma: Where do you store your common business logics?
2023-12-27Not sure why my code keeps printing 'wrong answer'
2023-12-27Tex: Is possible to break a line automatically?
2023-12-27Unix: How To Auto command -p In All My Script?
2023-12-27Wordpress: Remove rel="nofollow ugc" from links in comments
2023-12-27Why performance for this index-of-max function over many arrays of 256 bytes is so slow on Intel ...
2023-12-27Drop the duplicated index and keep one in the multi-index dataframe
2023-12-26What is the command line shortcut to uncomment a previously commented line?
2023-12-26How to split a column into multiple columns data
2023-12-26Raspberrypi: Toshiba USB HDD crashes RPi 5 when doing cp or mv ; Works fine on other machine
2023-12-26Debian NFS Kerbereos (MIT) Mounts and grants share but permissions are messed up
2023-12-26How do I configure multicast to be used with rsync in batch mode



Tags:
inline
if-statement
python