Hey, So I am a very experienced PHP programmer and completely new to python, I was wondering if someone could assist me with this program I am trying to make, The idea is simple The program has 10 different fortune quotes, the user needs to be able to tell the program how many quotes they want displayed, minimum however must be 5 quotes. I know I am new here to this DaniWeb but I have used this website for years for help with my PHP programming. Can someone please show what I would go about making a program such as this in Python? Any help is greatly appreciated.
Jump to Post
I think an example would be easier than telling:
#!/usr/bin/env python import random # The random module is really handy. quotes = ['quote 1', 'quote 2', 'quote 3','quote 4', 'quote 5', 'quote 6', 'quote 7', 'quote 8', 'quote 9', 'quote 10'] # Take the user's input, num_quotes …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.