GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

CS flashcard revision.

Adam Pratley Computer Science GCSE Englisch 4,5Durchschnittliche Bewertung 4,5 von 5 (2 Bewertungen) 8 Karten

CS flashcard revision.

Karten in diesem Stapel (8)

  1. 1define .formatting and give an example..formatting limits the amount of decimal places that are printed in floats. for example
    number = 98.1468297645
    print("The answer is{0:.5f}".format(number))
  2. 2what does int( ) do and how is it incorporated into your code?The int( ) makes sure that the answer given is a whole number not text or including decimals.
    age=int(input("Please enter your age"))
  3. 3how do you convert denary into binaryyou can use a table like these and put a one below the numbers that can be added together to make your number.how do you convert denary into binary
  4. 4how do you convert binary to denaryyou can use a table like these but add the numbers together that have a one below themhow do you convert binary to denary
  5. 5how do you multiply in your code? (give an example)gdp= float(input("blah blah blah))
    eur= gdp * 1.32
    print("blah blah",eur)
  6. 6how do you implement addition into your code (give an example)age=int(input("blah blah blah"))
    ageplusten=age + 10
    print("blah blah",ageplusten,"blah blah")
  7. 7how do you implement subtraction into your code (give an example)age=int(input("blah blah blah"))
    ageminusten=age - 10
    print("blah blah",ageminusten,"blah blah")
  8. 8how do you implement division into your code (give an example)age=int(input("blah blah blah"))
    agedividedten=age / 10
    print("blah blah",agedividedten,"blah blah")

Informationen

Beschreibung
these are flash cards that will help you revise contents; .formatting int( ) denary to binary binary to denary multiplication addition subtraction division
Erstellt von
Adam Pratley
Aufrufe
101
Bewertung
Durchschnittliche Bewertung 4,5 von 5 (2 Bewertungen)

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck