Stats: 3,191,465 members, 7,944,309 topics. Date: Monday, 09 September 2024 at 02:19 PM |
Nairaland Forum / Science/Technology / Programming / Practical Introduction To Python Web Programming (6554 Views)
Web Programming Tutorial In Python. / Sumit Raj Discusses Python Web Development, Chatbot, Natural Language Processing / Learn Python- Introduction To Programming (2) (3) (4)
Re: Practical Introduction To Python Web Programming by sinkhole: 10:26am On Jan 10, 2016 |
basbone:I am finding it hard to get it work from this place! I am using chrome/yandex browser. on typing "web2py -a '123' -p 8081" I kept getting a "syntax error" |
Re: Practical Introduction To Python Web Programming by kachnov(m): 12:45pm On Jan 12, 2016 |
basbone: Hi dude,sent you a pm. You can teach online the full course on our site for free.(paid/free ) |
Re: Practical Introduction To Python Web Programming by Nobody: 7:18pm On Feb 03, 2016 |
sinkhole: wow....its been long. Sorry for replying late. If you downloaded web2py for windows, it should work else if you downloaded the source file, i.e web2py.py then you must run it via python, i.e python web2py.py -a '123' -p 8081 make sure to give spaces between the command line codes...... |
Re: Practical Introduction To Python Web Programming by sinkhole: 4:05am On Feb 05, 2016 |
basbone:Thanks, I finally got it to work, but I had to do some tweaking beyond the tutorial ![]() For those asking for e-book, I have an e-book by Massimo DiPierro, but it is about 4.1MB and NL only allows 250kB, so I do not know how to get it across for now ![]() |
Re: Practical Introduction To Python Web Programming by Nobody: 1:54pm On Feb 05, 2016 |
sinkhole: welcome, i used the command line parameters so that users can get themselves acquinted with cl scripts especially when switching to other frameworks like django.... So how did you see the web-based IDE/interface? Any apps under your sleeves? |
Re: Practical Introduction To Python Web Programming by sinkhole: 7:51pm On Feb 05, 2016 |
. |
Re: Practical Introduction To Python Web Programming by WafiJoe(m): 8:42pm On Feb 05, 2016 |
Guys please I need help fast. What is wrong with this code: pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word[0] new_word = word + first + pyg new_word = [1 : len(new_word)] #What is wrong with this line? print original else: print 'empty' |
Re: Practical Introduction To Python Web Programming by umaryusuf(m): 12:19pm On Feb 06, 2016 |
WafiJoe: Maybe u forgot to add name of the list u want to filter, like so: new_word = word[1 : len(new_word)] |
Re: Practical Introduction To Python Web Programming by WafiJoe(m): 1:57pm On Feb 06, 2016 |
umaryusuf: Yeah yeah, thanks for answering. I got that one solved yesterday. Now I need response for this problem, and it is urgent. Here is the code below: prices = {"banana":4, "apple":2, "orange":1.5, "pear":3} Please tell me, what is wrong with the above code? |
Re: Practical Introduction To Python Web Programming by WafiJoe(m): 2:08pm On Feb 06, 2016 |
WafiJoe: Got it. There shouldn't be space before the " |
Re: Practical Introduction To Python Web Programming by MrReloaded(m): 9:09am On Feb 07, 2016 |
My pycharm expired yesterday, did any1 has a license key for it |
Re: Practical Introduction To Python Web Programming by Nobody: 6:00pm On Feb 09, 2016 |
WafiJoe: take note of the bolded. It is a good programming practice to use numbers as keys when accessing a python dictionary, such as: stock = {4:'banana', 6:'apples', 5:'mango'} |
Re: Practical Introduction To Python Web Programming by JigsawKillah(m): 6:04pm On Feb 09, 2016 |
basbone: Boss, continue na |
Re: Practical Introduction To Python Web Programming by Nobody: 6:10pm On Feb 09, 2016 |
JigsawKillah:alright.....please pardon me for the delay. |
Re: Practical Introduction To Python Web Programming by JigsawKillah(m): 6:14pm On Feb 09, 2016 |
Re: Practical Introduction To Python Web Programming by Nobody: 6:41pm On Feb 09, 2016 |
Introduction to functions functions makes our programs to be modular in nature, i.e, instead writing long list of python statements within our main program, we could break them into modules called functions. This ensures readability, consistency and portability of our code. A typical python function starts with: def your_function_name() : def means function definition, then followed by the name of your function, and a colon ( : ) For example,
this will print "hello python!" twelve times. 1 Like |
Re: Practical Introduction To Python Web Programming by Nobody: 6:51pm On Feb 09, 2016 |
In some codes, for those of us that loves reading codes from opensource projects, we often see something like this:
this simply means that if the program will start with a main function, it should be the hello() function. 1 Like |
Re: Practical Introduction To Python Web Programming by Nobody: 7:15pm On Feb 09, 2016 |
Dealing with *args and **kwargs in python functions, we often deal with *args (i.e arguments) and **kwargs (i.e keyword arguments) for example:
my simple explanation to this is that, *args is used to represent a tuple within the function while **kwargs is used to represent a python dictionary within the function. So, if you know how to define a tuple and dictionary, you can specify them within a function using the *args and **kwargs respectively...... This brings us to the END of our Python introduction. Other imperative resources to look into are: The Python Documentation from www.python.org www.pythontutor.com You can also check out www.python.org/moin/FrontPage Finally, always remember that www.google.com.ng is your friend. Now, over to more funnier things........web programming with web2py 1 Like |
Re: Practical Introduction To Python Web Programming by JigsawKillah(m): 7:58pm On Feb 11, 2016 |
basbone: Funny? My guts feelings says it isn't LOL Ride on Boss |
Hospital Management System Program. / How It Feels Like To Learn Javascript In 2016 / Shoplog V2.3 (Inclusion of license fee)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 35 |