Read File Bytes in Python 😀

preview_player
Показать описание
Code to read bytes from a file in Python.

Support this channel, become a member:

🔥 Udemy Courses LOW COST Coupons/ Cupões Cursos Udemy BAIXO CUSTO 🔥:

With Udemy Courses you get/ Com Cursos da Udemy você terá:
♾️ Full lifetime access/ Acesso Vitalício Completo
📱📺 Access on mobile and TV/ Acesso no celular e TV
🏆 Certificate of completion/ Certificado de Conclusão

𝗗𝗼𝗻'𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝗮𝗻𝗱 𝘀𝗺𝗮𝘀𝗵 𝘁𝗵𝗲 𝗯𝗲𝗹𝗹 𝗯𝘂𝘁𝘁𝗼𝗻!
Like, comment and share with your friends :)

Download source code at:

📚 Useful books from Mike Driscoll 📚:

Other videos:

Playlists:

Follow us on Facebook
Рекомендации по теме
Комментарии
Автор

This is intended for BEGINNERS! 😀

⭐ Every Monday, Thursday and Saturday we post a new question poll at the community tab of this channel! ⭐

⚡ Thanks for watching and don't forget to activate the bell 🔔 button so you get notified when a new video comes out! ⚡

AllTechPage
Автор

Sir, it was very good and very informative. Thank you for this quality video. It helped me to understand the concept.

shashikantdivekar
Автор

Great video. Would any one help with this.
Great Video but please if any can help with this code
def main():
#special formatting for the output
PRE = '@'
SEP = '***END***\n'

toOut = input('Enter file name to output\n')
orderFile = open(toOut, 'w')

goon = 'y'
while goon == 'y':
name = input('Enter the name\n')
#concats the PRE char to the name so we know it's a name in the output file

num = 'not naut' #dummy value to start so the loop loops
while num != '-1':
#get sales for each person, uses -1 as a sentinel value to indicate we're done looping
num = (input('Enter value or -1 to quit end for ' + name +'\n'))
#we don't want to write the sentinel to the file
if num != '-1':
orderFile.write(str(num) + '\n')

orderFile.write(SEP) #after we're done with the sales for a person write the seperator to mark the end

#if y we loop again for another person
goon = input('Would you like to enter another person? y for yes\n')

main()
Here is the result
@Alice
19.99
13.33
123
321
***END***
@Bobby
1
2
3
4
5
6
7
8
9
10
***END***
@Cathy
3.33
2.22
1.11
***END***
but how can I calculate the above each employee sales to show result like below
@Alice
$477.32
***END***
@Bobby
$55.00
***END***
@Cathy
$6.66
***END***

mustafaquraishy
Автор

your code has a problem with the last "break" in the "while" loop

hasan
join shbcf.ru