Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

bytes Data Type:

Vinay Rawal answered on April 1, 2023 Popularity 7/10 Helpfulness 1/10

Contents


More Related Answers

  • byte data type in java example
  • bytes32 value
  • data type
  • Java byte data type
  • data types
  • data type
  • data types
  • int Data Type:
  • str Data Type:
  • data type

  • bytes Data Type:

    0

    bytes data type represens a group of byte numbers just like an array. 1) x = [10,20,30,40] 2) b = bytes(x) 3) type(b)  bytes 4) print(b[0])  10 5) print(b[-1])  40 6) >>> for i in b : print(i) 7) 8) 10 9) 20 10) 30 11) 40 Conclusion 1: The only allowed values for byte data type are 0 to 256. By mistake if we are trying to provide any other values then we will get value error.

    Conclusion 2: Once we creates bytes data type value, we cannot change its values,otherwise we will get TypeError. 

    Popularity 7/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Apr 01 2023
    Vinay Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.