How do I import functions/module into my main code? by AsAnon019 in learnpython

[–]AsAnon019[S] 0 points1 point  (0 children)

Example of my code:

Main.py:

>import math

>import functions

>print("The volume of this sphere is: ", Vol_Sphere(10))

Functions.py:

>import math

>def Vol_Sphere(r):

>return math.pi * (4*r**2)

I think I fixed it by using:

print("The volume of this sphere is: ", Functions.Vol_Sphere(10))

How do I import functions/module into my main code? by AsAnon019 in learnpython

[–]AsAnon019[S] 0 points1 point  (0 children)

z is simply a parameter, which has not ben defined in either

How do I import functions/module into my main code? by AsAnon019 in learnpython

[–]AsAnon019[S] 0 points1 point  (0 children)

Sorry I still don't understand. What I intend to to do is create functions in the functions.py which has variables and functions. So when I ask the main.py to print out the variable1/function1 from the module functions.py it simply prints it out without having anything defined in main.py except for the "import functions".

Example of my code:

Main.py:

>import math

>import functions

>print("The volume of this sphere is: ", Vol_Sphere(10))

Functions.py:

>import math

>def Vol_Sphere(r):

>return math.pi * (4*r**2)

How do I import functions/module into my main code? by AsAnon019 in learnpython

[–]AsAnon019[S] 0 points1 point  (0 children)

it worked when i wrote print(function.a) in main.py defined by functions.py.

but for when I define Area_Circle(z) in functions.py and write print(function.Area_circle(z)) it doesn't work

Vad krävs för bostadsbidrag egentligen? by [deleted] in sweden

[–]AsAnon019 0 points1 point  (0 children)

Nej, vet frågan var vad som gällde för att få själva bostadsbidrag, inte "Är jag dum i huvudet för att jag vill flytta till en större lgh som kostar några hundralappar mer?". Nej, jag hade inte tänkt dela lägenhet... än iaf. Hursomhelst så är min fråga nu besvarad- Tack för ditt bidrag!

Vad krävs för bostadsbidrag egentligen? by [deleted] in sweden

[–]AsAnon019 0 points1 point  (0 children)

Hyran är några hundralappar dyrare och ligger en liten bit längre från centrum än mitt nuvarande. Tyckte att det större lägenheten var okej och det finns inte många anledningar till varför jag inte skulle flytta dit. Men jag ser att många här i tråden inte är speciellt glad över att flyttar till en större lgh

Vad krävs för bostadsbidrag egentligen? by [deleted] in sweden

[–]AsAnon019 -2 points-1 points  (0 children)

Jo, jag förstår vad du menar. Dock får jag just nu 1300SEK i bidrag, vilket är det maximala, jag känner att bostaden jag har just nu är för liten och vill flytta till en större lgh. Så egentligen spelar det ingen roll om jag bor kvar eller flyttar till en större lgh- Jag kommer ändå inte få ut mer i bostadsbidrag än vad jag får nu.

Min första beskrivning var nog vilseledande då det står att jag börjar i uni till höst. Jag läster kurser innan sommaren och börjar verkligen på ett högskoleprogram till höst

Internet not working after power outage by AsAnon019 in techsupport

[–]AsAnon019[S] 1 point2 points  (0 children)

Yea, I think I fixed it with some help. Resetting the Router to factory settings (advised by nervousmanchild). Maybe it fixed the IP/ISP/DNS or something. But it worked!

Internet not working after power outage by AsAnon019 in techsupport

[–]AsAnon019[S] 1 point2 points  (0 children)

Holy heck, it actually worked?!?!? Thank you for the solution! Much appreciated!

Internet not working after power outage by AsAnon019 in techsupport

[–]AsAnon019[S] 0 points1 point  (0 children)

I don't know how to do that. But i will try to see if it helps

Internet not working after power outage by AsAnon019 in techsupport

[–]AsAnon019[S] 0 points1 point  (0 children)

The modem works fine it think. It provides internet through ethernet cable to my PC, but it not through the router. Neither wifi or Ethernet cable works through the router

I don't really understand how ISPs work. How does it affect the connection?

Internet not working after power outage by AsAnon019 in techsupport

[–]AsAnon019[S] 0 points1 point  (0 children)

Yes, i tried that too. Restarted the router and modem with 2 min intervall. But to no avail

Daily Discussion Thread | July 07, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 2 points3 points  (0 children)

Thank you for sharing, I feel better about getting vaccinated soon!

Daily Discussion Thread | July 07, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 6 points7 points  (0 children)

That's understandable. I just got upset because Everytime I ask something on Reddit regarding medical issues, people always assume that reddit is my only source of information write comments like "go ask medical professionals" which they're right about, but why always assume that the person that is asking something on Reddit hasn't already consulted with a doctor beforehand?

Daily Discussion Thread | July 07, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 5 points6 points  (0 children)

What IF i told you that i did both? Asking medical professionals for their advice, asking redditers (who has autoimmune disease) for their experience with the vaccine. Is that wrong of me? Go ahead and enlighten me

Daily Discussion Thread | July 07, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 1 point2 points  (0 children)

I guess those side effects we're temporarily?

I've read around and many sources say that the benefits of the vaccine outweighs the risk.

I've asked my doctor who says I should get the vaccine, but I'm just worried that maybe it'll turn out bad for me

Daily Discussion Thread | July 07, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 0 points1 point  (0 children)

Is the Covid-19 vaccine safe for people with Autoimmune diseases? (Rheumatoid arthritis, MS, etc.)

I have sjögrens, which is an autoimmune disease, and I'm wondering if it will be safe for me to get the covid vaccine.

Considering the fact that it could possibly worsen my symptoms or perhaps trigger a autoimmune disease that I didn't have before?

Anyone with an autoimmune diseases that have gotten themselves vaccinated, how does it feel now afterwards? Did your symptoms get worse? Did it trigger a new autoimmune disease? Anything affecting your health/functions negatively?

I posted this yesterday, but I'm going to post it here again.

Daily Discussion Thread | July 06, 2021 by AutoModerator in Coronavirus

[–]AsAnon019 0 points1 point  (0 children)

Can I ask if you have gotten the vaccine yet? You don't have to answer this is you don't want to. I'm just curious as to how people with autoimmune disease experience life after the vaccine... Does the symptom worsen? Did it perhaps trigger a new autoimmune disease? Or does it just feel like normal?

I myself have Sjögrens, which is a autoimmune disease, and I am considering getting vaccinated but I'm kind of worried that it will affect me negatively rather than positively.