Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1225

Python • Import data and passing a variable into binary

$
0
0

Code:

#secrets.pymyserver = "myserverdata.s1.eu.hivemq.cloud"

Code:

import secrets.pyserver = b'secrets.myserver'.
Is it possible to call my variable this way with a b'secrets.myserver' and have it pass as binary?

Statistics: Posted by eflwi — Sun Feb 09, 2025 6:46 pm



Viewing all articles
Browse latest Browse all 1225

Trending Articles