Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boolean expression #18

Open
Margarita250494 opened this issue Apr 19, 2023 · 2 comments · May be fixed by #32
Open

boolean expression #18

Margarita250494 opened this issue Apr 19, 2023 · 2 comments · May be fixed by #32
Assignees
Labels
review wanted Extra attention is needed

Comments

@Margarita250494
Copy link

No description provided.

@Margarita250494
Copy link
Author

Margarita250494 commented Apr 19, 2023

def boolean(a):
my_number = a
if my_number % 2 == 0:
print(my_number, "is even.")
else:
print(my_number, "is odd.")

def basic_potatos():
potato_size_inches = 1.6

if potato_size_inches >= 2.5:
    size = "A"
elif 1.5 <= potato_size_inches <= 2.25:
    size = "B"
elif potato_size_inches < 1.5:
    size = "C"
else:
    size = "UNKNOWN"

print(size)

def hello():
s1 = "Hello"
s2 = "HELLO"
print(s1 == s2)
print(s1.lower() == s2.lower())

if name == 'main':

boolean(34)
basic_potatos()
hello()

@JonasTrenkler JonasTrenkler self-assigned this Apr 23, 2023
@JonasTrenkler JonasTrenkler added the review wanted Extra attention is needed label Apr 23, 2023
@JonasTrenkler
Copy link

The code you wrote so far is not working for me, as the imported code is missing in the repository.
If you created the modules or files main, a, boolean, basic_potatos and so on locally, you did not add and push them correctly. I guess they contain the code that you posted above?

While this would work for playing around with some of the boolean syntax in Python, I do not find it useful as reference.
I'll create a branch and pull request to show some example tests. You can check fetch that branch, view, edit and test it locally. The instructions to run the test are in the Readme.md of this repository.
Let me know if you need any help with this. =)

@JonasTrenkler JonasTrenkler linked a pull request Apr 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants