sadiqnav

sadiqnav

Lv7
1 Follower
0 Following
3 Helped

ANSWERS

Published162

Subjects

History1English2Anthropology8Business3Science2Information Technology13Algebra12Engineering1Probability2Geometry1Computer Science6Accounting4Calculus10Biology20Mathematics21Statistics6Physics35Economics1Chemistry14
Answer: Step-by-step explanation: Fraud is generally defined as an intentional...
Answer: momentum of the car is 200000 kg*m/sStep-by-step explanation: The mome...
Answer: Step-by-step explanation: (a) We have w = 2z^2 - j3z. Therefore, u = 2...
Answer: Step-by-step explanation: Tetrahedral Bent (angular) Linear Square pyr...

Hi dkss followed your suggestion for this question

 

Here is what my pubspec.yaml listed below - However I just notice this new error msg - Error on line 26, column 3: Expected a key while parsing a block mapping.
   ╷
26 │   cupertino_icons: ^1.0.2
   │   ^
   ╵
Please correct the pubspec.yaml file at D:\todolist\pubspec.yaml

How do I fix that problem?

 

name: todolist
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
sdk: '>=2.19.3 <3.0.0'


dependencies:
flutter:
sdk: flutter
makefile cloud_firestore: ^3.0.0

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
google_fonts: ^4.0.3
firebase_auth:
cloud_firestore:
firebase_core:
intl:
fluttertoast:


dev_dependencies:
flutter_test:
sdk: flutter
makefile cloud_firestore: ^3.0.0

flutter_lints: ^2.0.0


flutter:


uses-material-design: true


# For details regarding adding assets from package dependencies, see
#

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see

Answer: Looks like there are some syntax errors in your pubspec.yaml fileStep-...
Answer: 1. The postulate of the "Ruler Postulate". 2. The postulate of the" co...
Answer: Step-by-step explanation: The molarity of the solution can be calculat...
Answer: Step-by-step explanation: The year of birth would not necessarily dete...
Answer: Step-by-step explanation:To find the mass to hang at 40 cm to the righ...
Answer: Step-by-step explanation:Give me a question to answer
Answer: Step-by-step explanation:An answer is a response or solution to a ques...
Answer: Step-by-step explanation:Art can be defined as a wide range of human a...
Answer: Step-by-step explanation:A robot is a programmable machine that is cap...
Answer: Step-by-step explanation:Division is a mathematical operation used to ...
Answer: Step-by-step explanation: "Max" can refer to different things dependin...
Answer: Step-by-step explanation:Painting is the practice of applying paint or...
Answer: Step-by-step explanation:A country is a geographic and political regio...

Answer: Find the complete solution belowStep-by-step explanation: Calculation ...

Answer: Rolling an odd sum is not independent of rolling a sum less than 5. St...
Answer: c usurious a dowry b embankment
Answer: ADME stands for Absorption, Distribution, Metabolism, and Excretion. S...
Answer: There are 400 gold coins in the chest.Step-by-step explanation: Let's ...
Answer: GPS satellite runs about 15.7 nanoseconds slower per second compared t...
Answer: Answer is option AStep-by-step explanation: We can use the impulse-mom...
Answer: Let me review and sent.
Answer: 1. Joey feels like he's been in space for 5 years, only 3.16 years hav...
Answer: The answer is (D) -3/7.Step-by-step explanation: For a matrix to be in...
Answer: The answer is (a) [-17/5; 43/5].Step-by-step explanation:To compute (P...
Answer: The answer is (D).Step-by-step explanation: The expected value of the ...
Answer: option f) none of the aboveStep-by-step explanation: There are 5 pairs...
Answer: Don't have the file. Need additional information.
Answer:a matrix is a rectangular array of numbers or other mathematical object...
Answer: True. Step-by-step explanation: A truss is a type of engineering struc...
Answer: Without more specific information on which "Markets as Institutions" t...
Python Programming Tutorial

In this Python tutorial, you'll learn everything you need to start programming in Python. This tutorial is perfect for data science, machine learning, and web development. No prior knowledge in Python or programming is required as everything will be taught from scratch. I'm Mosh Hamadani, and I've taught millions of people how to code through this channel. If you're new here, make sure to subscribe as I upload new videos every week. Let's jump in and get started.

What is Python?

Python is a multipurpose programming language that can be used for a variety of different tasks, such as automation, web development, and data science.

  • You can use Python in automation to automate repetitive tasks and save time and increase productivity.
  • You need to install a code editor to write your own Python code.
  • You can build amazing websites powered by Python.

We'll be using PyCharm as our code editor in this tutorial. When you open PyCharm for the first time, you have to configure a few settings, but we can skip that for now and set defaults. Let's create a new project and collapse the project window to give more space. We can then print a message on our application window.

Running Python Code

To run Python code in PyCharm, we go to the run menu and select run, or use the shortcut (ctrl+shift+r on a Mac). Then select the app to run, and the output will appear in the terminal window. Python is case sensitive so make sure to use the correct case when coding. We can declare variables, such as age and price, and assign them values. Python also has boolean values that can be true or false.

Now let's start coding!

age = 30
print(age)
price = 19.95
print(price) Declare and Use Variables in Python

Here's a little exercise for you: imagine we want to write a program for a hospital, so we're going to check in a patient named John Smith. He's 20 years old and is a new patient. I want you to declare a few variables to store these values.

Use the comment section below to share your code.

Receiving User Input in Python

In Python, we have a built-in function called input() that we use to read a value from the terminal window. We can add a string argument to the function to prompt the user for input.

Let's write a simple program to demonstrate this:

name = input("What is your name? ")print("Hello, " + name)

When we run this program, it will prompt the user to input their name. Once a value is entered, the program will print the greeting message with the input value.

Data Types in Python

There are three main data types in Python: numbers, strings, and booleans.

  • Numbers - This includes integers and floating-point numbers.
  • Strings - This includes textual data.
  • Booleans - This includes True and False values.
Converting Data Types in Python

Python has several built-in functions for converting the types of our variables. For example, we have the int() function for converting a value to an integer:

birth_year = "1982"age = 2020 - int(birth_year)print("You are " + str(age) + " years old.")

In the above example, we use the int() function to convert the birth_year string to an integer so we can subtract it from the current year.

We also have the float() function for converting a value to a float:

num = "10.5"float_num = float(num)print(float_num)

In the above example, we use the float() function to convert the num string to a floating point number.

Type Conversion in Python

In programming languages like Python, there are times when you need to convert a variable from one type to another. In this tutorial, I'll show you a bunch of cool things you can do with strings using Python for beginners.

In Python, the index of the first character in a string is 0. So, when we run this program, you're going to see 1 on the terminal because the index is 1.

print("Hello World"[1]) # Output: e

The float function is used to convert a string to a float value.

first = float(input("Enter the first number: "))

We can also change this expression to first + second, which is another way to write this piece of code.

The lower method is used to convert a string to lowercase or to find a character or a sequence of characters.

string = "Hello World"print(string.lower()) # Output: hello worldprint(string.find('o')) # Output: 4print(string.replace('o','a')) # Output: Hella Warld

The in operator can be used to check if a string contains a character.

string = "Python is a programming language for beginners."print('language' in string) # Output: True Arithmetic Operators in Python

Python has various arithmetic operators that we can use, such as addition (+), subtraction (-), multiplication (*), and division (/).

print(10 + 3) # Output: 13

We also have an augmented assignment operator in Python that means incrementing a variable by a value.

x = 5x += 3 # Output: 8

Operator precedence in Python is similar to math, but we can always use parentheses to change the order of operations.

x = 10 + 3 * 2 # Output: 16

Multiplication and division have a higher order, so they are evaluated first. That's why the answer is 16.

x = 10 + 3 / 2print(x) # Output: 11.5

When we print x, we get 11.5.

x += 3print(x) # Output: 14.5

When we run x += 3, we get 14.5 as the result. When we run x == 13, it will store False in the x variable.

x = 1000 # Output: 1000
Answer: The complete statement looks good. What is expected?
Answer: Find all the answers in explanation session.Step-by-step explanation: ...
Answer: The dot above 12 in the Stony Brook graph represents a single observat...
Answer: The amount of medicine to which the body is most sensitive is M/3C.Ste...
Answer: The sensitivity of the body to the medicine (dR/dM) is directly propor...
Answer: Unfortunately i dont have the email id. Need additional omformation

Weekly leaderboard

Start filling in the gaps now
Log in