Jump to content

so instead of making a lot of threads i will just keep adding my questions here so if you can help please follow it so you can be alerted when i ask a new one

 

so my first question is how do i store a variable i have to store the 

 

so far i have

 

now = 5

datetime.now()
print now
 
and i have to store the value if datetime.now() how do i do that?
Link to comment
https://linustechtips.com/topic/459272-python-questions-will-be-updating/
Share on other sites

Link to post
Share on other sites

I don't quite understand what you're trying to do.

Also, use code tags.

Is this it?

import datetimenow = datetime.now()print now

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

 

I don't quite understand what you're trying to do.

Also, use code tags.

Is this it?

import datetimenow = datetime.now()print now

sorry i dont know how to use code tags. and yeah thats it i thought i had to have a number stored and i was confued but i just had to store the datetime.now 

Link to post
Share on other sites

how do i make line 10 = false using the NOT 

 

# Use boolean expressions as appropriate on the lines below!
 
# Make me false!
bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you!
 
# Make me true!
bool_two = 2 != 4 == 2 or  4 > 1
 
 # Make me false!
bool_three = 2 + 2 == 4 not 3 + 3 == 6  THIS IS LINE 10
 
# Make me true!
bool_four = 10**2 != 100 and 3 * 2 == 9
 
# Make me true!
bool_five = 5 + 5 != 10 or 1 + 1 = 2
Link to post
Share on other sites

What's the point if everything is solved for you?

Getting spoon fed won't do you any favours - you'll just get lazy. I suggest you go away and try to work it out by yourself.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

sorry i dont know how to use code tags.

 

See here for one way to do it. You can also do it in the editor, it's the < > symbol above where you write your post.

 

Example

# Use boolean expressions as appropriate on the lines below! # Make me false!bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you! # Make me true!bool_two = 2 != 4 == 2 or  4 > 1  # Make me false!bool_three = 2 + 2 == 4 not 3 + 3 == 6  THIS IS LINE 10 # Make me true!bool_four = 10**2 != 100 and 3 * 2 == 9 # Make me true!bool_five = 5 + 5 != 10 or 1 + 1 = 2
Link to post
Share on other sites

What's the point if everything is solved for you?

Getting spoon fed won't do you any favours - you'll just get lazy. I suggest you go away and try to work it out by yourself.

it's called help. You see how it's done so next time you will know don't be so ignorant, I try everything I can think of before I ask. So please don't reply if you won't help. Read the code of conduct you can't reply to a topic and not help with the OP's question
Link to post
Share on other sites

it's called help. You see how it's done so next time you will know don't be so ignorant, I try everything I can think of before I ask. So please don't reply if you won't help. Read the code of conduct you can't reply to a topic and not help with the OP's question

You're not really doing yourself any favours with that attitude.

Put some effort in and look at the detail:

# Make me false!bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you!
You are given eveything you need right there.

Moreover as it's been a day now have you at least attempted the problem?

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

You're not really doing yourself any favours with that attitude.

Put some effort in and look at the detail:

# Make me false!bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you!
You are given eveything you need right there.

Moreover as it's been a day now have you at least attempted the problem?

I'm new ive only been learning for about 10 hours over the course of 2 days (3) counting today. So it's good to have help see I got help and now I understand and can do it on my own. And yes i got done with that problem not long after I asked. I already started on a text based game I'm making to test what I can do
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×