#๐Ÿ”’ 100% new to python BME student need help

40 messages ยท Page 1 of 1 (latest)

hallow sundialBOT
#

@sour eagle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sour eagle
#

i sent also some stuff

#

but it got deleted by python, maybe because it was a PDN file

#

ill send screenshots

agile vessel
#

Use just what you have learnt in the lecture and the lab, you are not allowed to develop codes based on your own knowledge.
This is a bit of a minefield for getting help online because we don't know what has been covered in your course.

sour eagle
#

yes i read that

#

I know what i learnt in my past lecture

agile vessel
#

But let's take q1 to start with.
Have your lectures covered creating functions?

sour eagle
#

i will share it

agile vessel
#

Good start

sour eagle
#

one second

#

this is the basics we learnt, sadly i did not know

#

\when i used

#

the python website'

#

i accidently downloaded the run command

#

not the actual code

#

we learnt how to make a code say hello

#

and the age and name

#

and we learnt how to calculate the number of characters

#

then this,

agile vessel
#

The assignment asks you to create a function.
This is something that probably should have been covered in the lectures.
Given the instructions to cite your external sources, it's probably better if I link you to a site so you can refer to it.
https://realpython.com/defining-your-own-python-function/

In this tutorial, you'll learn how to define and call your own Python function. You'll also learn about passing data to your function, and returning data from your function back to its calling environment.

sour eagle
#

so the whole assignment

#

is simply asking me to make a program to create a function?

agile vessel
#

A function is part of a program. The assignment asks you to write a function.

sour eagle
#

thank you trentj, i should also add this link of the website to my program

#

as said in guidelines

agile vessel
#

to implement the function that Q1 asks for, you'll need some of the mathematical functions that are defined for you in the math module. https://docs.python.org/3/library/math.html

sour eagle
#

some of these?

agile vessel
#

sin, cos, log, etc.

#

I'm traveling with spotty service today, but you can post more specific questions you have and other people may be able to help too

sour eagle
#

you been ton of help

#

thank you!

hallow sundialBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.