Need Help Please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need Help Please

In Halloween question of Code coach - Will you please tell me where I go wrong in this code: houses = int(input("Enter a number:")) TB = 1 DB = 2 if int(DB / houses * 100 == 67): print("67 percentage") else: print("33 percentage") This is my first attempt and I am stuck here!!🤨

12th May 2020, 2:21 PM
Tejas Joshi
Tejas Joshi - avatar
4 Answers
+ 2
houses = int(input()) dollarbill = 2 / houses * 100 from math import ceil print (ceil(dollarbill ))
12th May 2020, 2:26 PM
Saturday Abraham Oyeabuan
Saturday Abraham Oyeabuan - avatar
+ 3
Thanks for all helping 🤗
12th May 2020, 3:00 PM
Tejas Joshi
Tejas Joshi - avatar
0
Saturday Abraham Oyeabuan n bro I have 1 question for you where do you learn about the ceil function in math module as It haven't taught in the course yet.......
12th May 2020, 3:03 PM
Tejas Joshi
Tejas Joshi - avatar
0
you will learn about it before completing the course.
12th May 2020, 3:22 PM
Saturday Abraham Oyeabuan
Saturday Abraham Oyeabuan - avatar