Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple lines?
#1
Hello, everyone. I'm fairly new to coding and in a bit of a jam. I'm trying to type out this example i saw online on IDLE and it reads something like this.

1 response = input("What is your radius? ")
2 r = float(response)
3 area = 3.14159 * r ** 2
4 print("The area is ", area)
But MY code stops at the 2nd line.

>>> response = input("What is your radius?")
What is your radius?
What am I doing wrong or how do i get my code to look something like the example? And how come I can't code offline? Any help is greatly appreciated.
Reply


Messages In This Thread
Multiple lines? - by Noobie12 - Nov-14-2017, 11:40 PM
RE: Multiple lines? - by Larz60+ - Nov-15-2017, 12:49 AM
RE: Multiple lines? - by Noobie12 - Nov-15-2017, 01:18 AM
RE: Multiple lines? - by Larz60+ - Nov-15-2017, 05:26 AM
RE: Multiple lines? - by buran - Nov-15-2017, 07:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write the condition for deleting multiple lines? Lky 3 1,187 Jul-10-2022, 02:28 PM
Last Post: Lky
  Delete multiple lines from txt file Lky 6 2,348 Jul-10-2022, 12:09 PM
Last Post: jefsummers
  Display table field on multiple lines, 'wordwrap' 3python 0 1,797 Aug-06-2021, 08:17 PM
Last Post: 3python
  pulling multiple lines from a txt IceJJFish69 3 2,608 Apr-26-2021, 05:56 PM
Last Post: snippsat
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 5,988 Aug-10-2020, 11:01 PM
Last Post: medatib531
  print python json dump onto multiple lines lhailey 2 19,956 Mar-02-2020, 12:47 PM
Last Post: vishalhule
  Random nr. no repetition & printing multiple lines Joey 7 2,845 Feb-05-2020, 04:23 PM
Last Post: Larz60+
  how to insert # to multiple lines? hkfatasy 1 2,923 Dec-22-2019, 01:51 AM
Last Post: ichabod801
  KeyError -read multiple lines bongielondy 2 3,482 Nov-06-2019, 01:33 AM
Last Post: bongielondy
  spliting similar but multiple lines anna 7 3,585 Apr-20-2019, 08:53 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020