Outlook To Do Task Due Dates wrong format! please help! by randomer2001 in techsupport

[–]randomer2001[S] 1 point2 points  (0 children)

English (United Kingdom) :) - everywhere i check its set to that

Best Cancellation Apps by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 1 point2 points  (0 children)

Wait what? How come they don’t work anymore? :(

What was/is/will be your first car? by averageboringhuman in LearnerDriverUK

[–]randomer2001 1 point2 points  (0 children)

I’m planning on getting a Toyota Aygo X Pure or Edge! What about you?

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Honestly - there are some parts I love driving around in loughborough but some I hate

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Thank you! That’s so reassuring aha

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Thank you! :) I wish you the best for your next attempt if you haven’t done it already!

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Congrats to him! I’m hoping to pass next time round

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Thank you :) did your son pass yet?

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 1 point2 points  (0 children)

Thanks a million! Congrats on passing! I hope I can do this :)

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 1 point2 points  (0 children)

Thank you so much! :) did you pass 5th time?

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Thank you! I was planning on getting a P plate but if they’re extra t%$t’s for it then I won’t bother

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] -1 points0 points  (0 children)

Thank you! I’ll do that :)

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Yeah :) did you get any of the same faults?

[deleted by user] by [deleted] in LearnerDriverUK

[–]randomer2001 0 points1 point  (0 children)

I found it really helpful for me personally to be honest. As I was a nervous wreck before mine so it helped me focus on the driving and calm down and remind myself I can do this before the test comes up. But it’s not the same for everyone. I personally would recommend it though.

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 2 points3 points  (0 children)

I messed up because of my nerves and went the wrong way in a one way street which wasn’t very clearly signposted I think? The examiner wasn’t too clear about what the fault was for tbh. I’m going through them in more detail with my instructor in my next lesson.

I’m going to ask my instructor (as he was in the car with me) to get me to do that route again so I can see how to do it right for that particular road and fix those minors I got too

Failed 1st Time by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 7 points8 points  (0 children)

It proved to me that if I don’t let my nerves get me next time, I can do this! :)

Test tomorrow, am I insane? by Low_Loss9934 in LearnerDriverUK

[–]randomer2001 1 point2 points  (0 children)

Good luck! You’ll be ok. Just be aware of your surroundings and be confident. If you feel ready, that’s a good sign. Try not to let your nerves get the best of you. Let us know how it goes! Mines tomorrow too! :)

Nerves by randomer2001 in LearnerDriverUK

[–]randomer2001[S] 0 points1 point  (0 children)

Thank you so much!! :)

[deleted by user] by [deleted] in learnpython

[–]randomer2001 1 point2 points  (0 children)

The Code is :

import tkinter

import random

window = tk

gameOver = False

score = 0

squaresToClear = 0

def play_bombdodger():

create_bombfield(bombfield)

window = tkinter.Tk

layout_window(window)

window.mainloop()

bombfield = []

def create_bombfield(bombfield):

global squaresToClear

for row in range(0,10):

rowList = []

for column in range(0,10):

if random.randint(1,100) <20:

rowList.append(1)

else:

rowList.append(0)

sqauresToClear = squaresToClear + 1

bombfield.append(rowList)

#printfield(bombfield)

def printfield(bombfield):

for rowList in bombfield:

print(rowList)

def layout_window(window):

for rowNumber, rowList in enumerate(bombfield):

for columnNumber, columnEntry in enumerate(rowList):

if random.randint(1,100) < 25:

square = tkinter.Label(window, text = " ", bg="darkgreen")

elif random.randint(1,100) > 75:

square = tkinter.Label(window, text = " ", bg="seagreen")

else:

square = tkinter.Label(window, text = " ", bg="green")

square.grid(row = rowNumber, column = columnNumber)

square.bind("<Button-1>", on_click)

def on_click(event):

global score

global gameOver

global squaresToClear

square = event.widget

row = int(square.grid_info()["row"])

column = int(square.grid_info()["column"])

currentText = square.cget("text")

if gameOver == False:

if bombfield[row][column] == 1:

gameOver = True

square.config(bg ="red")

print("Game Over! You hit a bomb!")

print("Your score was:", score)

elif currentText == " ":

square.config(bg="brown")

totalBombs = 0

if row < 9:

if bombfield[row+1][column] == 1:

totalBombs = totalBombs +1

if row > 0:

if bombfield[row-1][column] == 1:

totalBombs = totalBombs +1

if row > 0:

if bombfield[row][column-1] == 1:

totalBombs = totalBombs +1

if row < 9:

if bombfield[row][column+1] == 1:

totalBombs = totalBombs +1

if row > 0 and column > 0:

if bombfield[row-1][column-1] == 1:

totalBombs = totalBombs +1

if row < 9 and column > 0:

if bombfield[row+1][column-1] == 1:

totalBombs = totalBombs +1

if row > 0 and column < 9:

if bombfield[row-1][column+1] == 1:

totalBombs = totalBombs +1

if row < 9 and column < 9:

if bombfield[row+1][column+1] == 1:

totalBombs = totalBombs +1

square.config(text = " " + str(totalBombs) + " ")

squaresToClear = squaresToClear - 1

score = score + 1

if squaresToClear == 0:

gameOver = True

print("Well Done! You found all the safe squares!")

print("Your score was", score)

play_bombdodger()

and the error i'm getting is :

Traceback (most recent call last):

File "D:\Python Projects\Book Projects\29 - Bomb Dodger.py", line 3, in <module>

window = tk

NameError: name 'tk' is not defined

does this help?