Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: I want to create an if-condition, but I'm not sure how to.
Post: RE: I want to create an if-condition, but I'm not ...

(Aug-09-2020, 04:15 PM)ndc85430 Wrote: As in, you can't write else: # something herebecause again, else means "in the other case", so it has to follow an if or elif. Of course, an if on its own ...
LeqendFire General Coding Help 5 2,442 Aug-09-2020, 04:37 PM
    Thread: I want to multiply two variables, but I get an error
Post: RE: I want to multiply two variables, but I get an...

(Aug-09-2020, 03:43 PM)deanhystad Wrote: Do not use comma to mark the decimal place. Use period. By using a comma you told python that height is a tuple, two numbers (1, 65). Thanks, that worked ...
LeqendFire General Coding Help 3 2,144 Aug-09-2020, 03:52 PM
    Thread: I want to multiply two variables, but I get an error
Post: I want to multiply two variables, but I get an err...

I have two questions. First: I want to multiply two variables, but I get an error. How can I solve it? here is my Code: Name = 'Random' Height = 1,65 Weight = 52 bmi = Weight / (Height * He...
LeqendFire General Coding Help 3 2,144 Aug-09-2020, 03:39 PM
    Thread: I want to create an if-condition, but I'm not sure how to.
Post: RE: I want to create an if-condition, but I'm not ...

(Aug-09-2020, 10:55 AM)ndc85430 Wrote: It doesn't make sense for else to have a condition. Like in English, it means "in the other case". That's also why you can't have an else on its own. What do y...
LeqendFire General Coding Help 5 2,442 Aug-09-2020, 11:00 AM
    Thread: I want to create an if-condition, but I'm not sure how to.
Post: I want to create an if-condition, but I'm not sure...

I want to create an if-condition, but I'm not sure how to do it... I would like, that if the else-condition is true, it prints my message. How can I do that? That's my recent try: y = 'lol' if y =...
LeqendFire General Coding Help 5 2,442 Aug-09-2020, 09:13 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020