pythonhelpif-elsehackerrankpyhton3 2nd Feb 2021, 10:56 PM Ailana 1ответ Ответ + 1 I don't get your solution at all, according to me question is simply asking this . n=int(input()) if n%2!=0: print("Weird") elif n%2==0 and n in range(2,6): print("Not Weird...
Create a HackerRank account Be part of a 26 million-strong community of developers Please signup or login in order to view this challenge or Already have an account?Log in Privacy Preference Center When you visit any website, it may store or retrieve information on your browser, mostly in ...
Solution: netAmount = 0 while True: s = input() if not s: break values = s.split(" ") operation = values[0] amount = int(values[1]) if operation=="D": netAmount+=amount elif operation=="W": netAmount-=amount else: pass print(netAmount) Question 18 Level 3 Question: A web...
A gangster never enters a situation without a plan. They constantly look for ways to gain leverage, whether it’s through alliances, intimidation (figuratively speaking), or exploiting gaps in the system. As a leader: Develop creative solutions to problems. When everyone else sees obstacles, you...
You may do Java or something else, this is just my thing You don't need all these. You need only one language for the interview. Why code in all of these? Practice, practice, practice, until I'm sick of it, and can do it with no problem (some have many edge cases and bookkeepi...
https://www.hackerrank.com/challenges/py-if-else/problem pythonhelpif-elsehackerrankpyhton3 2nd Feb 2021, 10:56 PM Ailana 1 Answer Answer + 1 I don't get your solution at all, according to me question is simply asking this . n=int(input()) if n%2!=0: print("Weird") elif n%2...