Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Integer Operator in If Statements
Post: RE: Integer Operator in If Statements

Thanks to everyone! I guess im a newbie with coding, this is the intro to computer science course in our university, and I am really liking it so far! To wavic : He told us to leave it like that, re...
warmth Homework 13 9,607 Feb-25-2017, 11:51 PM
    Thread: Integer Operator in If Statements
Post: RE: Integer Operator in If Statements

(Feb-25-2017, 07:30 AM)buran Wrote: In python3 y/a and x/a will always be float. (And in python2 - always int, given that x,y and a are always int.) So once the problem with the syntax is resolved t...
warmth Homework 13 9,607 Feb-25-2017, 04:10 PM
    Thread: Integer Operator in If Statements
Post: Integer Operator in If Statements

x=int(input("Enter 1st")) y=int(input("Enter 2nd")) a=0 if x>y and x<0:         a=-x if x>y and x>0:         a=x if y>x and y<0:         a=-y if y>x and y>0:         a=y if x==...
warmth Homework 13 9,607 Feb-25-2017, 03:55 AM

User Panel Messages

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