Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Halli Hallo^^

Wie kann man die Gleichung ax+b=c

mit phyton berechnen??Die Zahlen sollen vorher angegeben werden, ich hab schon was versucht, aber da kommt immer null raus. Bin noch totale Anfängerin was Phyton angeht.

Muss ich da mehrere If's abfragen??Oder wie? Hach muss man auch immer gleich alles mit Mathe kombinieren :(

Ich danke für jeden Tipp,

Gruß Doriel

ja, also a, b und c wird eingegeben(raw_input("a = ")usw),irgendwelche zahlen halt und x soll das Programm dann ausrechnen.

ja das weis ich ja, ein bisschen mathe hab ich schon glernt :D

aber wie mache ich das in python???ich krieg das nicht auf die Reihe *heul*

mehrwertsteuer war noch einfach aber das, ojee

Bitte bitte genauere Hinweise/Tipps ^^'

Wo ist das Problem?

Ist doch total unabhängig von der Programmiersprache, wie man eine Gleichung Mathematisch umstellt....


x =( c - b ) / a

ich hab zwar null ahnung von python aber kills hat natürlich (wie immer ;))recht...

wenn man googled ("python" tutorial") findet man unter anderen

PYTHON TUTORIAL

dort kann man u.a. in der sektion "3.1 Using Python as a Calculator" nachschauen und sehen dass die mathematik die selbe wie in allen programmiersprachen ist.

hier mal ne zuweisung an variablen und eine berechnung

>>> width = 20

>>> height = 5*9

>>> width * height

und das geht mit deiner rechung genau so....

*seufz*

alles toll solange kein mathe vorkommt^^

Danke, ich werde das dann mal austesten.

Gruß Doriel

ich hab zwar null ahnung von python aber kills hat natürlich (wie immer ;))recht...

wenn man googled ("python" tutorial") findet man unter anderen

:rolleyes::rolleyes:

gut recherchiert forTeeSake :)

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.