Skip to content

feat: Add function to convert integer to binary#202

Open
Andy-ai-pixel wants to merge 6 commits intoUNICT-Quality-Development:mainfrom
Andy-ai-pixel:convert_to_binary
Open

feat: Add function to convert integer to binary#202
Andy-ai-pixel wants to merge 6 commits intoUNICT-Quality-Development:mainfrom
Andy-ai-pixel:convert_to_binary

Conversation

@Andy-ai-pixel
Copy link
Copy Markdown

No description provided.

#

n = int(input("Insert first number: "))
print("The binary number is: ", bin(n)[2:])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

puoi fare il wrap del codice in una funzione

quindi crea una funzione che implementi questo codice

@@ -0,0 +1,14 @@
import unittest
from unittest.mock import patch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bisogna usare pytest non unittest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants