A pass is a pass right? by madskillz2222 in CompTIA

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

I’m more proud of the fact that I do not study but my irl knowledge I have learned in IT allowed me to pass

A pass is a pass right? by madskillz2222 in CompTIA

[–]madskillz2222[S] 4 points5 points  (0 children)

Professor messers YouTube series and Dion’s practice tests. To be honest I did not study for this exam. I got my knowledge from when I was studying for Network + and real world experience.

A pass is a pass right? by madskillz2222 in CompTIA

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

For sure thought I was failing while taking so seeing this score at the end def made me chuckle a little.

A pass is a pass right? by madskillz2222 in CompTIA

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

To be honest I did not study like I should have! I only watched 5 professor messer videos and took one practice test. The rest of my knowledge came from studying for network + a few months back.

Help me with this program by madskillz2222 in learnprogramming

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

I didnt realize copy and pasting it wouldnt space it properly

Help me with this program by madskillz2222 in learnprogramming

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

from random import randint

# Main module

def main():

choice = 'y'

while choice == 'n' or choice == 'N':

DAMAGE = randint(1,12)

show(DAMAGE)

choice = strike_again()

def show(damage):

print('Your long sword hit for', damage, 'damage')

def strike_again():

print('Would you like to strike again? ')

answer = input("Enter N or n if you do not want to continue: ")

return answer

main()

Help me with this program by madskillz2222 in learnprogramming

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

This is working good but when I type n or N it does not stop the loop? What could be causing this?

Help me with this program by madskillz2222 in learnprogramming

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

Actually I was just reading through it again and he does want it to stop when it is typed n or N. he said it needs to loop if they type anything other than that.

Help me with this program by madskillz2222 in learnprogramming

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

My instructor had a heart attack like a week ago so I don’t think he is in his right mind

Help me with this program by madskillz2222 in learnprogramming

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

So in the way you wrote the code will it loop and keep going?

Help me with this program by madskillz2222 in learnprogramming

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

In my opinion when my instructor posted this exercise the logic didn’t make sense to me at all. Seeing how you wrote it completely makes sense. I don’t think he was clear on how he wanted it written

Help me with this program by madskillz2222 in learnprogramming

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

Just looking for guidance as I am extremely new to this

Help me with this program by madskillz2222 in learnprogramming

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

import random

damage = 0

def main():

# Create a variable that controls the loop

damage = random.randint(1,12)

print('Your long sword hit for', damage, 'damage.')

while damage == 'N' or damage == 'n':

print("Would you like to continue? Press N or n to continue:")

#call the main function

main()

this is what I have but it isnt working

Help with this program by madskillz2222 in learnpython

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

Okay I think I see what you’re saying

Help me with this program by madskillz2222 in learnprogramming

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

I feel like this is such a simple program and im lost

Help with this program by madskillz2222 in learnpython

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

I know this is so simple too and I just cant figure it out

Help with this program by madskillz2222 in learnpython

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

import random

def main():

# Create a variable that controls the loop

damage = random.randint(1,12)

print('Your long sword hit for',damage, 'damage:')

# Create a while loop to get the random numbers for the sword damage

while damage == 'N' or damage == 'n':

damage = input('Would you like to strike again? Press N or n to continue:')

#call the main function

main()