Skip to content

Tag: python-3.x

How do I create a file I can stream data to in Python?

I’d like to create a file similar to those under /dev that I can stream lines of text to without actually writing anything to the disk. I want to still be able to read this stream like a regular text file. Answer Call the os.mkfifo function, then open the file it creates as normal. Anything that gets wr…

Startup with Django runserver error

I am starting up with Python-Django in Ubuntu 18.04. I have python3 installed. python3 –version says Python 3.5.2 After installing Python, I installed Django as below: I also have Django installed. django-admin –version says 2.0.5 In my project, startproject worked successfully, but when I am tryi…

SyntaxError on input() supposedly in Python 3

I have a script for sending emails using SMTP_SSL. The code is working fine in PyCharm but in the terminal I get an error. This is the code: When I run this in my terminal its giving this after i enter the email: When I am trying to put the email between quotes, e.g. “mahmoud.wizzo@gmail.com” its …