Can someone please explain the "yield" keyword in Python?
I have started learning Python and I came across the yield keyword. It is bit hard for me to understand it first time. Can someone please explain about it?
View ArticleIs it possible to use Enums is Python?
Can someone please let me know whether it it possible to use Enums in Python?
View ArticleTernary conditional operators in Python
Can you please let me know whether Python has ternary conditional operators?
View ArticleThis is in python 3.3, Software sales. I am new to programming
A software company sells a package that retails for 99$. Quantity discounts are given according to the following table. 10-19=20% 20-49=30% 50-99= 40% 100 or more =50% . write a program that ask the...
View ArticleIs it possible to use a global variable created inside a Python function, in...
I have a global variable created in a function of Python. Can I use this variable in another function?
View ArticleHow to check if a file exists using Python?
Please explain me how to check whether a file exists using Python.
View Articlereading PDF file with pypdf no contents are captured. Please help
I am trying to read a PDF file using pypdf and write onto a text file. But its not working. content value in the below code is just "u/n/n/n/n/n'...PDF file has 5 pages so 5 times new line character...
View Articlereading PDF file with pypdf no contents are captured. Please help
I am trying to read a PDF file using pypdf and write onto a text file. But its not working. content value in the below code is just "u/n/n/n/n/n'...PDF file has 5 pages so 5 times new line character...
View ArticlePlease Help New to Python
I have to make a simple shooting game for my programming class, and everything else seems to be fine except for my math. Please advise: import turtle import tkinter import random import math...
View ArticleIs it possible to call an external command in Python?
Is it possible to run a Shell command using Python? If so, please explain.
View ArticleRemote Working Python Developers Needed!
Fantastic opportunity for an enthusiastic person to contribute to exciting projects and become a part of the fast growing organisation headquartered in London. XeonTek Ltd is a small (but ambitious)...
View Articledraw a rectangle
Hello to all I would like to create an application that asks the user to type the length and the width of a rectangle in a field and then he can click on a first button(draw rectangle) to draw the...
View ArticlePyPDF2 throws TypeError
I am trying to create watermark on a pdf file. Am using py3.4 and PyPDF2. while executing the merge statement i am getting error as shown below. Any help would be greatly appreciated. Traceback (most...
View ArticleInfinite Mandelbrot Set Tutorial - Video
Made a really cool Mandelbrot set link : I hope you all Enjoy, Thank you
View ArticleVideo Course + cool exercises
VIDEO PYTHON COURSE – 36 Videos and growing rapidly. Emphasis is on trying to make programming free and fun! Complete Video List: Python 0.0 - Downloading and installing Running Time: 1:47 Eyn2k about...
View Articlequestionaire
i need a question are that out put name date of birth and age but if name include a number the out put will be error and will restart the program and if age and dateofbirth includes any letter the out...
View ArticleNeed help creating a log in web page for my home server
I'm new to programming, and working to expand my knowledge. I learned the basics (variables, lists, simple equations, boolean expressions) years ago, and I'm taking refresher classess before moving on...
View ArticleLearning Python 3
Hello World!! I am a computer science major and will be starting my first programming class in 3 weeks. The class focuses on Python and I believe we will be using Python 3. In the meantime I have...
View ArticleValentin Fritzmann Subreddit Correct Codding?
Hello Guys, Currently i am working on my subreddit /r/Valentin_Fritzmann/ But i am facing one problem with this. Some time home page log stop displaying. I have check the css codding of this sub. But...
View ArticleHow to read only specific, needed values from a csv file into python with...
A python newbie with a large no of files and importing them. Each file contains some different values. Here is the code. data = glob.glob('*.csv') variance_data = [] for one_file in all_files: try:...
View ArticleHow do I convert a .py file to a .exe file?
I'm a beginner programmer and I was wondering how one converts a python file to an executable so when I click on it it runs automatically. Thanks
View ArticlePyc 2 py 2.2
Hi, i have to decompile python program. But i dont have got any idea how. Python version 2.2
View ArticleHow to fix this python code?
Hi everyone, I am writing a simple python guessing game. simply, the program asks the user to guess a number, if the number is correct, it shows a message (You win!)... if wrong, it gives the user...
View Articleimport data from website & record in csv file with new sheet
Dear all, I am looking for the code where i can extract data/ copy data from photon.info/photon_site_db_solarmodule_en.photon and pasted query into csv file. if webpage refreshed data should record in...
View ArticleHow to get a response body from a http request
Hi! This is my first post, so let me know if I make any mistake! Also, it's the first time I try to develop anything web using python . Anyway, my problem: I'm tryin to develop an app that lets me know...
View ArticleI'm confused about number to word conversion & pyttsx.
I am writing a python program on Windows using Python 2.7. Basically, it's a program that takes a 5-digit, negative & positive, number from user & spells it out in English using num2word or any...
View Articledjango how to change fields input according to related model field
I'm trying to make a code-name(i.e: Test Post will be TP-1, TP-2 ...) thing on Django. There is news model, and post model i got. When user create news title hence post's codename will be according...
View ArticleNeed help with ASCII type box in Python
Hello, I'm trying to make an ASCII code type box (the ones you see on GameFAQs of famous logos and such) since its part of the Chapter 6 Lab for Programming Arcade Games with Pygame. Here is what I...
View Article