Python Forum
Basic Python Program for Sequence
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Python Program for Sequence
#3
I doubt the prompt is right either.


def main():

#Obtain sequence on intergers from user
sequence = int(input("Enter a sequence of numbers: "))


#a) Print smallest and largers of the inputs
print(sequence)
print(min(sequence))
print(max(sequence))

#b) 



#Call main
main()
Moderator: Added Code tags - Please do so in future
Reply


Messages In This Thread
Basic Python Program for Sequence - by patycanes - Mar-21-2017, 05:53 PM
RE: Basic Python Program for Sequence - by Larz60+ - Mar-21-2017, 05:57 PM
RE: Basic Python Program for Sequence - by patycanes - Mar-21-2017, 08:56 PM
RE: Basic Python Program for Sequence - by nilamo - Mar-21-2017, 09:20 PM
RE: Basic Python Program for Sequence - by wavic - Mar-21-2017, 09:40 PM
RE: Basic Python Program for Sequence - by Larz60+ - Mar-22-2017, 01:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic program balajee 2 2,768 Sep-11-2018, 07:19 PM
Last Post: gruntfutuk
  python!TypeError: can't multiply sequence by non-int of type 'float' shaywune 2 9,601 Sep-24-2016, 04:33 PM
Last Post: shaywune

Forum Jump:

User Panel Messages

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