aayushi-droid / Python-Thunder

A curated list of Python applications
MIT License
86 stars 158 forks source link

Flip the Boolean #280

Closed sark-2110 closed 1 year ago

sark-2110 commented 3 years ago

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add

Problem statement:Create a function that reverses a boolean value and returns the string "boolean expected" if another variable type is given.

Examples reverse(True) ➞ False

reverse(False) ➞ True

reverse(0) ➞ "boolean expected"

reverse(None) ➞ "boolean expected" Problem Link: https://edabit.com/challenge/NLY7zGMYocsTbeS6n


Before submitting a PR please Check some details. Check Edabit for problem task

''' */ def reverse(arg): if type(arg) != bool: return "boolean expected" else: return not arg



This repository is valid for HacktoberFest2020

Read before making PR - [How to contribute on Github](https://www.dataschool.io/how-to-contribute-on-github/)
Good Luck,
sark-2110 commented 3 years ago

Please assign me this issue.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.