Ene Uran 638 Posting Virtuoso

Swell job!

Are the driving skills of the software only as good as the skills of the programmer?

Ene Uran 638 Posting Virtuoso

F = 9 * C/5 + 32
Is the same as
F = (9/5) * C + 32

With Python2 / is integer division, so avoid it by using 5.0 instead of 5

rubberman commented: Good point. +13
ddanbe commented: Indeed! +15
Ene Uran 638 Posting Virtuoso

Very nice! Just what I was looking for.

BustACode commented: Glad it was a benefit. +0
Ene Uran 638 Posting Virtuoso
Ene Uran 638 Posting Virtuoso

I wonder if there is a way in Python to simply import everything?

Ene Uran 638 Posting Virtuoso

There is no 2^64-1 for such large numbers.

Ene Uran 638 Posting Virtuoso

A bison burger with tall glass of V8.

Ene Uran 638 Posting Virtuoso

Dancing and music

Ene Uran 638 Posting Virtuoso
Ene Uran 638 Posting Virtuoso

What have you coded so far?

Ene Uran 638 Posting Virtuoso

Could not find complixity in the dictionary.

Ene Uran 638 Posting Virtuoso

I would say English language skills. Everyone in our department hates to call the help desk, because you can not understand those imported folks that work there.

Ene Uran 638 Posting Virtuoso

Data mining might be a good speciality.

Ene Uran 638 Posting Virtuoso

Rub fresh ground garlic on your chest twice a day and you never get a cold again.

Ene Uran 638 Posting Virtuoso

May the Force be with you!

Mya:) commented: Haha +0
Ene Uran 638 Posting Virtuoso

California is going through its worst drought in at least 1200 years.
Time to take showers together!

Ene Uran 638 Posting Virtuoso

Use
range(2, key_length)

Ene Uran 638 Posting Virtuoso

Well, C has a goto statement.
However, an interpretive language with a good IDE is better for beginners.

Ene Uran 638 Posting Virtuoso

In the country of Iceland beer was banned until March 1, 1989.

Ene Uran 638 Posting Virtuoso

Anything done by software can be undone by software!
---- Wesley Clark

Ene Uran 638 Posting Virtuoso

Efforts are on the way to have the country of Belgium renamed to Belgistan.

Ene Uran 638 Posting Virtuoso

About half of all cyber crime is committed by insiders.

Ene Uran 638 Posting Virtuoso

Buy everything but Lenovo!
These folks install Superfish malware at the factory!

Ene Uran 638 Posting Virtuoso

I average 1.276 hours per day.

Ene Uran 638 Posting Virtuoso

I always thought that typing := was one of the less desirable things of Pascal, now GO has picked it up. Otherwise the language has some nice new approaches, some seem to come from Python.

Ene Uran 638 Posting Virtuoso

Buy one where the hard drive is not infected with spyware at the factory level.

Ene Uran 638 Posting Virtuoso

If a driverless car gets into a bad accident, who will appear in court? The car?

Ene Uran 638 Posting Virtuoso

Google for Kivy Forums.

Ene Uran 638 Posting Virtuoso

To run older Python2 code examples with Python3 usually takes just a few modification. Python3 actually has a program called 2to3.py that will do that for you. Sooner or later it will be mostly Python3. So get version 3 of Python and a good IDE and start coding.

Ene Uran 638 Posting Virtuoso

Two heart shaped doughnuts and Duncan coffee.

Ene Uran 638 Posting Virtuoso

I wonder how many countries celebrate Valentine's Day?

Ene Uran 638 Posting Virtuoso

My feet are smelling
My nose is running
I park in my driveway
I drive on a parkway

Ene Uran 638 Posting Virtuoso

To see where you went wrong take a looky at:
inventwithpython.com/chapter14.html

Ene Uran 638 Posting Virtuoso

PySide comes with drag and drop designer.

Ene Uran 638 Posting Virtuoso

Very good third party modules to add to Python.

Ene Uran 638 Posting Virtuoso

The 4 on most Roman numeral clocks is written as IIII.

Ene Uran 638 Posting Virtuoso

Kosher dogs are a must in NYC!

Ene Uran 638 Posting Virtuoso

West coast all the way!
Seahawks best thing after chicken wings and cheap beer!

Ene Uran 638 Posting Virtuoso

Linux sounds more and more interesting. Seems to have a lot of nice tools.

Gribouillis commented: it does! +14
Ene Uran 638 Posting Virtuoso

Are your indentations a mixture of tabs and spaces?

Ene Uran 638 Posting Virtuoso

The first thing I do with editors on Windows is to set new lines to Linux Style. Wonder if there is a way to do this within Python code?

Ene Uran 638 Posting Virtuoso

Interesting, do you think you need to use a 64bit version of Python because you have a 64bit computer?

Ene Uran 638 Posting Virtuoso

One teaspoon of matter from a neutron star would weigh close to one billion tons.

Ene Uran 638 Posting Virtuoso

Try self.program_buttons

Ene Uran 638 Posting Virtuoso

Andreas,
in any forum you will have people that don't know how to ask a proper question. I share with you the destain of folks that make their problem a guessing game for the helpers, slowly revealing what they actually want.

Ene Uran 638 Posting Virtuoso

After the help Gribouillis gave you, also run a test:

class A(object):

    def __init__(self):
        self.a = 4
        self.b = 6

class B(A):

    def __init__(self):
        A.__init__(self)
        #some code

    def action(self):
        self.a = 9

# test it
aa = A()
print(aa.a)  # 4

bb = B()
print(bb.a)  # 4

bb.action()
print(bb.a)  # 9
Ene Uran 638 Posting Virtuoso

The with statement was introduced with Python 2.5 and the dictionary and set comprehensions with Python 2.7.3

Ene Uran 638 Posting Virtuoso

The Bible proves God owned a Plymouth, because it says He drove Adam and Eve from the Garden of Eden "in his Fury."

Ene Uran 638 Posting Virtuoso

So, what will this do?

with open('numbers.txt') as f:
    for line in f:
        print(line, type(line))
Ene Uran 638 Posting Virtuoso

Most IT departments won't let you cycle passwords.
So I take my favorite word and mix it with numbers, like:
b1u2l3l4s5h6i7t